Build failure
wadewegner opened this issue · 12 comments
I get the following build error when I run gradlew
:
~/Projects/Github/WadeWegner/AncientWarfare2 ±(1.12.x) ✗ ❯ ./gradlew
> Configure project :
This mapping 'snapshot_20170918' was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: ancientwarfare_at.cfg
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'AncientWarfare2'.
> Could not resolve all dependencies for configuration ':deobfCompile'.
> Could not resolve :FTBLib:4.2.5.
Required by:
project :
> Could not resolve :FTBLib:4.2.5.
> Could not get resource 'http://addons-origin.cursecdn.com/files/2505/842/FTBLib-4.2.5.xml'.
> Could not GET 'http://addons-origin.cursecdn.com/files/2505/842/FTBLib-4.2.5.xml'. Received status code 403 from server: Forbidden
> Could not resolve :FTBLib:4.2.5.
> Could not get resource 'http://addons-origin.cursecdn.com/files/2505/841/FTBLib-4.2.5.xml'.
> Could not GET 'http://addons-origin.cursecdn.com/files/2505/841/FTBLib-4.2.5.xml'. Received status code 403 from server: Forbidden
> Could not resolve :FTBUtilities:4.2.4.
Required by:
project :
> Could not resolve :FTBUtilities:4.2.4.
> Could not get resource 'http://addons-origin.cursecdn.com/files/2505/842/FTBUtilities-4.2.4.xml'.
> Could not GET 'http://addons-origin.cursecdn.com/files/2505/842/FTBUtilities-4.2.4.xml'. Received status code 403 from server: Forbidden
> Could not resolve :FTBUtilities:4.2.4.
> Could not get resource 'http://addons-origin.cursecdn.com/files/2505/841/FTBUtilities-4.2.4.xml'.
> Could not GET 'http://addons-origin.cursecdn.com/files/2505/841/FTBUtilities-4.2.4.xml'. Received status code 403 from server: Forbidden
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 7s
yup, I have no idea what exactly is happening there. I can actually build that properly locally, but fails for me on travis. if you figure out what's causing it let me know
Okay, what do you do locally to get this to build? I haven't been able to fix yet.
what system you have btw windows/linux? I am thinking it may not work on linux/unix as I have windows and travis runs it on linux
Looks like you are using some curseforge depedency. Why not use what my mods use? https://github.com/LatvianModder/FTBLib/blob/master/README.md
That looked very promising, @LatvianModder!
I updated build.gradle
with:
repositories {
maven {
name = "CoFH Maven"
url = "http://maven.covers1624.net"
}
maven {
name = "ChickenBones Maven"
url = "http://chickenbones.net/maven/"
}
ivy {
name "com.latmod.mods";
artifactPattern "http://mods.latmod.com/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
}
maven { url "http://dvs1.progwml6.com/files/maven" }
}
...
dependencies {
deobfCompile "cofh:RedstoneFlux:${rf_version}:universal"
deobfCompile "mezz.jei:jei_${minecraft_version}:${jei_version}"
compile "codechicken:CodeChickenLib:${ccl_version}:deobf"
compile "com.latmod.mods:FTBLib:${ftblib_version}:deobf"
compile "com.latmod.mods:FTBUtilities:${ftbutilities_version}:deobf"
}
Now I get the error:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.latmod.mods:FTBUtilities:4.2.4.
Searched in the following locations:
Do you know how to get FTBUtilities
?
Interestingly, I took FTBUtilities
out of dependencies
and it built fine. @P3pp3rF1y do you know if it's actually required?
dependencies {
deobfCompile "cofh:RedstoneFlux:${rf_version}:universal"
deobfCompile "mezz.jei:jei_${minecraft_version}:${jei_version}"
compile "codechicken:CodeChickenLib:${ccl_version}:deobf"
compile "com.latmod.mods:FTBLib:${ftblib_version}:deobf"
// compile "com.latmod.mods:FTBUtilities:${ftbutilities_version}:deobf"
}
Output:
❯ ./gradlew build
> Configure project :
This mapping 'snapshot_20170918' was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: ancientwarfare_at.cfg
Download http://mods.latmod.com/FTBLib/4.2.5/FTBLib-4.2.5-deobf.jar
> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :extractRangemapReplacedMain
/AncientWarfare2/build/sources/main/java
> Task :retromapReplacedMain
remapping source...
BUILD SUCCESSFUL in 1m 57s
14 actionable tasks: 11 executed, 3 up-to-date
@P3pp3rF1y I just sent a PR that, I think, fixes the build issue. Hopefully it will for travis too: #588
Thanks @LatvianModder!