[ci skip] Scan built jars for bad method usages (#8051)
This commit is contained in:
parent
0d79b867e5
commit
1bd678c494
4 changed files with 71 additions and 5 deletions
|
@ -25,3 +25,12 @@ configure<PublishingExtension> {
|
|||
from(components["java"])
|
||||
}
|
||||
}
|
||||
|
||||
val scanJar = tasks.register("scanJarForBadCalls", io.papermc.paperweight.tasks.ScanJarForBadCalls::class) {
|
||||
badAnnotations.add("Lio/papermc/paper/annotation/DoNotUse;")
|
||||
jarToScan.set(tasks.jar.flatMap { it.archiveFile })
|
||||
classpath.from(configurations.compileClasspath)
|
||||
}
|
||||
tasks.check {
|
||||
dependsOn(scanJar)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue