PaperMC / paperweight

Gradle build system plugin for Paper and Paper forks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Userdev plugin injected repositories are missing for PMD

scrayos opened this issue · comments

Hello!

Since I've got no clue on how the plugin performs the injection of the repositories (quiltmc.org, aikar.co, emc.gs, velocitypowered.com, etc.) and I don't want to create an xy-problem, I'll just outline my problem:

We perform a PMD analysis as part of our CI pipeline and PMD is also invoked as part of gradle build. This task fails with the message:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':pmdMain'.
> Could not resolve all task dependencies for configuration ':mainPmdAuxClasspath'.
   > Could not find org.quiltmc:tiny-mappings-parser:0.3.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/quiltmc/tiny-mappings-parser/0.3.0/tiny-mappings-parser-0.3.0.pom
       - https://oss.sonatype.org/content/groups/public/org/quiltmc/tiny-mappings-parser/0.3.0/tiny-mappings-parser-0.3.0.pom
       - https://papermc.io/repo/repository/maven-public/org/quiltmc/tiny-mappings-parser/0.3.0/tiny-mappings-parser-0.3.0.pom
       - https://libraries.minecraft.net/org/quiltmc/tiny-mappings-parser/0.3.0/tiny-mappings-parser-0.3.0.pom
     Required by:
         project :
   > 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://oss.sonatype.org/content/groups/public/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/maven-metadata.xml
       - https://oss.sonatype.org/content/groups/public/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/velocity-native-1.1.0-SNAPSHOT.pom
       - https://papermc.io/repo/repository/maven-public/com/velocitypowered/velocity-native/1.1.0-SNAPSHOT/maven-metadata.xml
       - https://papermc.io/repo/repository/maven-public/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
     Required by:
         project :

Since the repositories in question are not included in the "locations" part of the message (aside from papermc, which I added manually), this makes me believe that the repositories are not injected for this task. Could the repositories be added to other stages/tasks as well, so that the dependencies can be resolved for plugins like PMD?