Ancient Warfare 2

Ancient Warfare 2

6M Downloads

Build failure

wadewegner opened this issue · 12 comments

commented

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
commented

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

commented

Okay, what do you do locally to get this to build? I haven't been able to fix yet.

commented

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

commented

just gradlew setupDecompWorkspace and then gradlew build

commented

I'm on macOS High Sierra.

commented

I get the same error with gradlew setupDecompWorkspace.

commented

Looks like you are using some curseforge depedency. Why not use what my mods use? https://github.com/LatvianModder/FTBLib/blob/master/README.md

commented

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?

commented

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
commented

@P3pp3rF1y I just sent a PR that, I think, fixes the build issue. Hopefully it will for travis too: #588

commented
commented

Closing this as the change was made in dev branch. And no ftbutilities actually isn't required, I must have included it when I started implementing FTBUtils integration and only ended up using what's in FTBLib.