48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
@file:Suppress("VulnerableLibrariesLocal")
|
|
|
|
plugins {
|
|
id("java")
|
|
}
|
|
|
|
group = "cn.hamster3.mc.plugin"
|
|
version = "3.1.0"
|
|
|
|
repositories {
|
|
maven("https://maven.airgame.net/maven-public/")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.jetbrains:annotations:24.1.0")
|
|
compileOnly("org.projectlombok:lombok:1.18.30")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.30")
|
|
|
|
compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT")
|
|
compileOnly("cn.hamster3.mc.plugin:core-bukkit:+")
|
|
compileOnly("cn.hamster3.mc.plugin:ball-bukkit:+")
|
|
compileOnly("net.milkbowl.vault:VaultAPI:1.7")
|
|
compileOnly("me.clip:placeholderapi:+")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
tasks {
|
|
processResources {
|
|
filesMatching("plugin.yml") {
|
|
expand(project.properties)
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
withType<Jar> {
|
|
archiveBaseName = "HamsterCurrency"
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
jar {
|
|
destinationDirectory = rootProject.layout.buildDirectory
|
|
}
|
|
} |