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

Problem compiling from source #399

Open
3 tasks done
Eeshe opened this issue Nov 28, 2024 · 1 comment
Open
3 tasks done

Problem compiling from source #399

Eeshe opened this issue Nov 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Eeshe
Copy link

Eeshe commented Nov 28, 2024

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?

  1. Clone the repository.
  2. Change dependency compileOnly("com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.17-beta.2-SNAPSHOT") to compileOnly("com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.17-SNAPSHOT") in the build.gradle.kts file within the spigot module.
  3. Run shadowJar task.

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

  • read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
  • searched for and ensured there isn't already an open issue regarding this,
  • are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).
@Eeshe Eeshe added the bug Something isn't working label Nov 28, 2024
@petulikan1
Copy link

petulikan1 commented Dec 18, 2024

Hello, I've faced this issue as well. The artifact that's being referenced is nowhere to be found. I was luckily able to solve it and am able to build both CC and WolfyUtils. I've made a release for 1.21.3 and above for these plugins. You can find them here:
https://github.com/AureusDevelopment/CustomCrafting/releases/tag/4.18-petu
https://github.com/AureusDevelopment/WolfyUtils-Spigot/releases/tag/4.18-petu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants