feat: 初版提交
This commit is contained in:
43
build.gradle.kts
Normal file
43
build.gradle.kts
Normal file
@@ -0,0 +1,43 @@
|
||||
@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:1.2.0")
|
||||
compileOnly("cn.hamster3.mc.plugin:ball-bukkit:1.5.0")
|
||||
compileOnly("net.milkbowl.vault:VaultAPI:1.7")
|
||||
compileOnly("me.clip:placeholderapi:+")
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user