Could not find com.velocitypowered:velocity-native:1.1.0-SNAPSHOT
Protonull opened this issue · comments
We're using userdev for Minecraft 1.18.2 and have all of a sudden started getting build errors.
protonull@protonull-desktop:~/Project$ ./gradlew clean reobfJar
Downloading https://services.gradle.org/distributions/gradle-7.3.2-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%
Welcome to Gradle 7.3.2!
Here are the highlights of this release:
- Easily declare new test suites in Java projects
- Support for Java 17
- Support for Scala 3
For more details see https://docs.gradle.org/7.3.2/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
:executing 'download minecraft manifest'
:executing 'download minecraft version manifest'
:executing 'download vanilla minecraft server jar'
:executing 'download mojang server mappings'
:executing 'extract libraries and server from downloaded jar'
:executing 'filter vanilla server jar'
:executing 'generate mappings'
:executing 'remap minecraft server jar'
:executing 'fix minecraft server jar'
:executing 'access transform minecraft server jar'
:executing 'decompile transformed minecraft server jar'
:executing 'apply patches to decompiled jar'
:executing 'apply mojang mapped paperclip patch'
:installed server artifacts to cache
:done setting up paperweight userdev workspace for minecraft 1.18.2
> Task :project-paper:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':project-paper:compileJava'.
> Could not resolve all files for configuration ':project-paper:compileClasspath'.
> Could not find com.velocitypowered:velocity-native:1.1.0-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/velocity-native-1.1.0-SNAPSHOT.pom
- https://libraries.minecraft.net/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/maven-metadata.xml
- https://libraries.minecraft.net/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/velocity-native-1.1.0-SNAPSHOT.pom
- https://jitpack.io/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/maven-metadata.xml
- https://jitpack.io/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/velocity-native-1.1.0-SNAPSHOT.pom
- https://repo.papermc.io/repository/maven-public/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/maven-metadata.xml
- https://repo.papermc.io/repository/maven-public/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/velocity-native-1.1.0-SNAPSHOT.pom
Required by:
project :project-paper > io.papermc.paper:paper-server:userdev-1.18.2-R0.1-SNAPSHOT
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --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 1m 16s
2 actionable tasks: 1 executed, 1 up-to-date
This is reportedly due to Velocity switching over to PaperMC's maven repository, which lacks the 1.1.0-SNAPSHOT
version: https://repo.papermc.io/service/rest/repository/browse/maven-public/com/velocitypowered/velocity-native/
We ask that either the 1.1.0-SNAPSHOT
version be pushed to repo, or that the dependency be updated to a supported version hosted by the repo (presumably 1.1.0
) 🙏
This is not a paperweight issue. To explain why with an example: if the Paper repository went down it wouldn't be a Gradle issue, even though it would break Gradle builds depending on artifacts from the Paper repo.