44 lines
1.2 KiB
Kotlin
44 lines
1.2 KiB
Kotlin
plugins {
|
|
java
|
|
}
|
|
|
|
group = "com.gigazelensky.antispoof"
|
|
version = "1.5.0"
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://repo.codemc.io/repository/maven-releases/")
|
|
maven("https://repo.codemc.io/repository/maven-snapshots/")
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
|
|
maven("https://jitpack.io")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
|
|
compileOnly("com.github.retrooper:packetevents-spigot:2.7.0")
|
|
compileOnly("me.clip:placeholderapi:2.11.6")
|
|
|
|
// Runtime libraries loaded via Paper plugin.yml `libraries:`
|
|
compileOnly("org.pcap4j:pcap4j-core:1.8.2")
|
|
compileOnly("org.pcap4j:pcap4j-packetfactory-static:1.8.2")
|
|
compileOnly("com.github.ben-manes.caffeine:caffeine:3.2.0")
|
|
compileOnly("org.nanohttpd:nanohttpd:2.3.1")
|
|
compileOnly("com.google.code.gson:gson:2.10.1")
|
|
}
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.encoding = "UTF-8"
|
|
options.release.set(21)
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveBaseName.set("AntiSpoof")
|
|
archiveVersion.set("1.5.0")
|
|
}
|