CloudNetService / CloudNet

A modern application that can dynamically and easily deliver Minecraft oriented software
https://cloudnetservice.eu
Apache License 2.0
381 stars 120 forks source link

Build failed, execution failed for task ':modules:npcs:compileJava' #1281

Closed FatildaIV closed 1 year ago

FatildaIV commented 1 year ago

Stacktrace

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':modules:npcs:compileJava'.
> Could not resolve all files for configuration ':modules:npcs:compileClasspath'.
   > Could not resolve com.github.juliarn.NPC-Lib:npc-lib-bukkit:3.0.0-beta5.
     Required by:
         project :modules:npcs
      > Could not resolve com.github.juliarn.NPC-Lib:npc-lib-bukkit:3.0.0-beta5.
         > inconsistent module metadata found. Descriptor: com.github.juliarn.npc-lib:npc-lib-bukkit:3.0.0-beta5 Errors: bad group: expected='com.github.juliarn.NPC-Lib' found='com.github.juliarn.npc-lib'
   > Could not resolve com.github.juliarn.NPC-Lib:npc-lib-labymod:3.0.0-beta5.
     Required by:
         project :modules:npcs
      > Could not resolve com.github.juliarn.NPC-Lib:npc-lib-labymod:3.0.0-beta5.
         > inconsistent module metadata found. Descriptor: com.github.juliarn.npc-lib:npc-lib-labymod:3.0.0-beta5 Errors: bad group: expected='com.github.juliarn.NPC-Lib' found='com.github.juliarn.npc-lib'

* Try:
> Run with --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 5m 27s

Full stacktrace: https://gist.github.com/FatildaIV/01f0223679567c8d41699ad57a087b4e

Actions to reproduce

git clone https://github.com/CloudNetService/CloudNet-v3.git:nightly
cd CloudNet-v3
JAVA_HOME=/usr/lib/jvm/java-17-openjdk ./gradlew build

CloudNet version

86fb3dd

Other

Can be fixed by replacing "NPC-Lib" by "npc-lib" on lines 179-180 in gradle/libs.versions.toml: https://github.com/CloudNetService/CloudNet-v3/commit/2f389807b7c53ee937db22da13f5eec898b0ab6e#diff-697f70cdd88ba88fe77eebda60c7e143f6ad1286bca75017421e93ad84fb87dfL179-L180

Issue uniqueness

0utplay commented 1 year ago

The support for minecraft 1.20.2 (#1313) resolved this