2021-06-14 03:06:38 +02:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
2021-06-15 03:50:13 +02:00
|
|
|
`maven-publish`
|
2021-06-14 03:06:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-11-26 07:08:46 +01:00
|
|
|
implementation(project(":paper-api"))
|
2021-06-14 03:06:38 +02:00
|
|
|
api("com.mojang:brigadier:1.0.18")
|
|
|
|
|
2021-12-26 00:12:28 +01:00
|
|
|
compileOnly("it.unimi.dsi:fastutil:8.5.6")
|
|
|
|
compileOnly("org.jetbrains:annotations:23.0.0")
|
2021-06-14 03:06:38 +02:00
|
|
|
|
2021-12-26 00:12:28 +01:00
|
|
|
testImplementation("junit:junit:4.13.2")
|
2021-06-14 03:06:38 +02:00
|
|
|
testImplementation("org.hamcrest:hamcrest-library:1.3")
|
2024-04-06 21:53:39 +02:00
|
|
|
testImplementation("org.ow2.asm:asm-tree:9.7")
|
2021-06-14 08:56:15 +02:00
|
|
|
}
|
2021-06-15 03:50:13 +02:00
|
|
|
|
|
|
|
configure<PublishingExtension> {
|
|
|
|
publications.create<MavenPublication>("maven") {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
2022-06-28 00:41:59 +02:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|