build fails to resolve dependencies
les-citrons opened this issue ยท 18 comments
> Configure project :
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: betterportals_at.cfg
Version string '0.3.7.7-2-gfa42589*' does not match SemVer specification
You should try SemVer : http://semver.org/
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'BetterPortals'.
> Could not resolve all dependencies for configuration ':deobfCompile'.
> Could not resolve opencubicchunks:CubicChunks-1.12.2-0.0.970.0:SNAPSHOT.
Required by:
project :
> Could not resolve opencubicchunks:CubicChunks-1.12.2-0.0.970.0:SNAPSHOT.
> Could not get resource 'http://repo.spongepowered.org/maven/opencubicchunks/CubicChunks-1.12.2-0.0.970.0/SNAPSHOT/CubicChunks-1.12.2-0.0.970.0-SNAPSHOT.pom'.
> Could not GET 'http://repo.spongepowered.org/maven/opencubicchunks/CubicChunks-1.12.2-0.0.970.0/SNAPSHOT/CubicChunks-1.12.2-0.0.970.0-SNAPSHOT.pom'. Received status code 520 from server: Origin Error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Received status code 520 from server: Origin Error
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#Cloudflare
Looks like the sponge maven is temporarily having issues.
Yes, CubicChunks is not supposed to be on the sponge maven, a 404 is expected but a 520 is unexpected and caused Gradle to abort.
ah, I see. could I possibly reorder the priority of the repositories somewhere?
https://github.com/Johni0702/BetterPortals/blob/master/build.gradle.kts#L89-L90
I believe Gradle resolves deps in parallel, so simply re-ordering may or may not work.
yeah, it does not seem to work. thanks for your help, though. I guess I will have to wait for them to fix whatever is happening on their servers
oh. changing the sponge repo to https fixes the 520s. but I still get this error.
> Configure project :
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: betterportals_at.cfg
Version string '0.3.7.7-2-gfa42589*' does not match SemVer specification
You should try SemVer : http://semver.org/
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'BetterPortals'.
> Could not find CubicChunks-1.12.2-0.0.970.0-all.jar (opencubicchunks:CubicChunks-1.12.2-0.0.970.0:SNAPSHOT).
Searched in the following locations:
https://files.minecraftforge.net/maven/opencubicchunks/CubicChunks-1.12.2-0.0.970.0/SNAPSHOT/CubicChunks-1.12.2-0.0.970.0-SNAPSHOT-all.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 20s
Ah, yes, Forge decided to move their maven repo with little regard for anyone still pointing at the old one.
Try changing the version at
BetterPortals/settings.gradle.kts
Line 11 in fa42589
541e148
.Oh, and this one:
BetterPortals/settings.gradle.kts
Line 5 in fa42589
to
http://maven.minecraftforge.net/
. Same with any other references if I've missed any.ah, well I assumed I needed to put a d
there because if there isn't, I get this error
FAILURE: Build failed with an exception.
* Where:
Build file '/home/raven/git/BetterPortals/build.gradle.kts' line: 7
* What went wrong:
Could not apply requested plugin [id: 'net.minecraftforge.gradle.forge', artifact: 'com.github.ReplayMod:ForgeGradle:541e148'] as it does not provide a plugin with id 'net.minecraftforge.gradle.forge'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).
> Plugin with id 'net.minecraftforge.gradle.forge' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s
Hm, not the error I'd expect but try using the :all
version:
useModule("com.github.ReplayMod:ForgeGradle:541e148:all")
Sorry, I've got no idea then why the new version allegedly doesn't have the plugin in it while the old one did. You'll have to figure that our on your own.
It works fine in other projects, though I believe those mostly still use the old plugin syntax, though again that shouldn't really make a difference.
ah, I get this error now
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'BetterPortals'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find ForgeGradle.jar (com.github.ReplayMod:ForgeGradle:d541e148).
Searched in the following locations:
http://maven.minecraftforge.net/com/github/ReplayMod/ForgeGradle/d541e148/ForgeGradle-d541e148.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 10s
FAILURE: Build failed with an exception.
* Where:
Build file '/home/raven/git/BetterPortals/build.gradle.kts' line: 7
* What went wrong:
Plugin [id: 'net.minecraftforge.gradle.forge', artifact: 'com.github.ReplayMod:ForgeGradle:d541e148'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.github.ReplayMod:ForgeGradle:d541e148')
Searched in the following repositories:
Gradle Central Plugin Repository
BintrayJCenter
maven(https://maven.minecraftforge.net/)
maven2(https://jitpack.io)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s