silk icon indicating copy to clipboard operation
silk copied to clipboard

Broken gradle import with new paper module

Open solonovamax opened this issue 4 months ago • 0 comments

The paper module is currently breaking gradle imports, if you don't have silk 1.11.0 published to your local maven repo.

Here is a fix that uses the local projects instead:

+        api(project(":silk-$module", "namedElements"))
         @Suppress("UnstableApiUsage")
-        extractTransitive(includeInJar(implementation("net.silkmc:silk-${module}:${project.version}:dev") {
+        extractTransitive(includeInJar(project(":silk-$module", "namedElements")) {
             artifacts.removeIf { it.classifier != "dev" }
             assert(artifacts.isNotEmpty())
             exclude("net.silkmc") // exclude applies to transitive dependencies
-        })!!)
+        })!!

however, if you want to use an older version of silk, as specified in the comment, just bump it down to 1.10.4 instead.

solonovamax avatar Oct 07 '24 03:10 solonovamax