Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven no longer work for 1.12.2? #114

Open
LemADEC opened this issue Aug 4, 2019 · 5 comments
Open

Maven no longer work for 1.12.2? #114

LemADEC opened this issue Aug 4, 2019 · 5 comments

Comments

@LemADEC
Copy link

LemADEC commented Aug 4, 2019

Since a few days, I can no longer compile with dependencies on EnderCore with gradle as Maven can't find the deobf for EnderCore.
Gradle 4.10.2
ForgeGradle 2.3

gradlew build

> Configure project :
This mapping 'stable_39' was designed for MC 1.12! Use at your own peril.

> Task :compileJava
...

> Task :extractRangemapReplacedMain
C:\_mcdev\_sandbox\_mods\Cyberware\build\sources\main\java

> Task :retromapReplacedMain
remapping source...

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 36s
17 actionable tasks: 14 executed, 3 up-to-date
C:\_mcdev\_sandbox\_mods\Cyberware>gradlew build
Starting a Gradle Daemon, 4 incompatible Daemons could not be reused, use --status for details

> Configure project :
This mapping 'stable_39' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-7764e3e
  https://github.com/MinecraftForge/ForgeGradle
#################################################
                 Powered by MCP
             http://modcoderpack.com
     by: Searge, ProfMobius, R4wk, ZeuX
     Fesh0r, IngisKahn, bspkrs, LexManos
#################################################

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find deobf.com.enderio.core:EnderCore:1.12.2-0.5.65.
  Searched in the following locations:
...
    - https://jitpack.io/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.pom
    - https://jitpack.io/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.jar
...
    - https://minecraft.curseforge.com/api/maven/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.pom
    - https://minecraft.curseforge.com/api/maven/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.jar
    - http://maven.tterrag.com/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.pom
    - http://maven.tterrag.com/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.jar
    - http://maven2.tterrag.com/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.pom
    - http://maven2.tterrag.com/deobf/com/enderio/core/EnderCore/1.12.2-0.5.65/EnderCore-1.12.2-0.5.65.jar
  Required by:
      project : > com.enderio:EnderIO:1.12.2-5.0.49

...

BUILD FAILED in 30s
5 actionable tasks: 4 executed, 1 up-to-date
@HenryLoenwind
Copy link
Member

The "deobf." one is the one that setupDecompWorkspace creates. You need to run it again every time a "deobfCompile" dependency changes.

@LemADEC
Copy link
Author

LemADEC commented Aug 4, 2019

gradlew setupDecompWorkspace executes successfully, but the build still fails.
I've tried the clean task and purging the temporary build folders, but it still fails to find those files.

@LemADEC
Copy link
Author

LemADEC commented Aug 4, 2019

I've found a workaround by removing the reference to EnderIO, then running setupDecompWorkspace to fill my local cache with EnderCore, then adding back the EnderIO reference, then running another setupDecompWorkspace , then I can build my project...

@tterrag1098
Copy link
Member

Depending on both EC and EIO should fix the problem. Set EIO to transitive = false too.

@LemADEC
Copy link
Author

LemADEC commented Aug 4, 2019

They were both declared as dependency, with EnderCore first, like so:

    provided "com.enderio.core:EnderCore:${mc_version}-${endercore_version}:core"
    provided "com.enderio:EnderIO:${mc_version}-${enderio_version}"
    provided "info.loenwind.autoconfig:AutoConfig:${mc_version}-1.0.2"
    //Given we are only compiling EnderCore we also need a reference to auto save
    provided "info.loenwind.autosave:AutoSave:${mc_version}-1.0.10"

It decided to go deobf for some reason, so I've changed it to deobCompile which fails without setting transitive to false on EnderIO.
I've removed the apparently useless references to AutoConfig and AutoSave.
This give this updated version which still works after clearing repository and gradle caches:

    deobfCompile "com.enderio.core:EnderCore:${mc_version}-${endercore_version}:core"
    deobfCompile("com.enderio:EnderIO:${mc_version}-${enderio_version}") {
        transitive = false
    }

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants