CustomCrafting
CustomCrafting copied to clipboard
Problem compiling from source
What happened?
I just cloned the repository and right of the bat, without changing anything, a lot of the references to WolfyUtilities couldn't be resolved. I figured this was because the dependency specified in the build.gradle.kts for the spigot module was 4.17-beta.2-SNAPSHOT, which is not available in the repository https://artifacts.wolfyscript.com/artifactory/gradle-dev. I tried changing to all the 3 versions that are actually in the repository:
- 4.16.15.1
- 4.17-beta.1
- 4.17-SNAPSHOT
While the 4.17 versions fixed the references not being resolved, when I try to run the shadowJar task I get the following error:
Execution failed for task ':spigot:compileJava'.
> Could not resolve all files for configuration ':spigot:compileClasspath'.
> Could not find com.wolfyscript.wolfyutils:wolfyutilities:4.16.1-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- file:/home/eeshe/.m2/repository/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- file:/home/eeshe/.m2/repository/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://repo.codemc.io/repository/maven-public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://repo.codemc.io/repository/maven-public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://repo.papermc.io/repository/maven-public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://repo.papermc.io/repository/maven-public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://artifacts.wolfyscript.com/artifactory/gradle-dev/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://artifacts.wolfyscript.com/artifactory/gradle-dev/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://repo.dmulloy2.net/repository/public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://repo.dmulloy2.net/repository/public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://mvn.lumine.io/repository/maven-public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://mvn.lumine.io/repository/maven-public/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://repo.oraxen.com/releases/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://repo.oraxen.com/releases/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
- https://repo.extendedclip.com/releases/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/maven-metadata.xml
- https://repo.extendedclip.com/releases/com/wolfyscript/wolfyutils/wolfyutilities/4.16.1-SNAPSHOT/wolfyutilities-4.16.1-SNAPSHOT.pom
Required by:
project :spigot > com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.17-SNAPSHOT:20240502.183755-2
I tried looking for the mentioned 4.16.1-SNAPSHOT version but I couldn't find it, and I actually don't fully understand why would WolfyUtils-4.17-SNAPSHOPT need WolfyUtils-4.16.1-SNAPSHOT?
I'd appreciate some help regarding this situation, I'm sorry if this is something very simple I'm missing, but I've been a couple hours digging and I can't find anything.
How can the bug be reproduced?
- Clone the repository.
- Change dependency
compileOnly("com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.17-beta.2-SNAPSHOT")tocompileOnly("com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.17-SNAPSHOT")in thebuild.gradle.ktsfile within thespigotmodule. - Run
shadowJartask.
Expected Behaviour?
All WolfyUtilities references are resolved correctly and the plugin can be built with the shadowJar task.
Plugin version
CustomCrafting 4.17-beta.5 WolfyUtilities 4.17-SNAPSHOT
Server software
Not applicable
Relevant log output
No response
Submit issue
- [X] read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
- [X] searched for and ensured there isn't already an open issue regarding this,
- [X] are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).