ITADN

Broken gradle import with new paper module

#65Opensolonovamax 创建于 2024-10-07
S
solonovamaxcommented
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: ```diff + 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.
0 条评论