build: 将构建脚本转换成 kotlin 语言
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
setArchivesBaseName("HamsterCore-BungeeCord")
|
||||
|
||||
evaluationDependsOn(':core-common')
|
||||
|
||||
dependencies {
|
||||
//noinspection VulnerableLibrariesLocal
|
||||
compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT'
|
||||
|
||||
implementation project(":core-common") transitive false
|
||||
//noinspection GradlePackageUpdate
|
||||
implementation "com.zaxxer:HikariCP:${HikariCP_version}" exclude group: 'org.slf4j'
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bungeecord
|
||||
implementation "net.kyori:adventure-platform-bungeecord:${adventure_version}" exclude group: 'org.jetbrains' exclude group: 'com.google.code.gson'
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
|
||||
implementation "net.kyori:adventure-text-minimessage:${adventure_serializer_version}" exclude group: 'org.jetbrains'
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson
|
||||
implementation "net.kyori:adventure-text-serializer-gson:${adventure_serializer_version}" exclude group: 'org.jetbrains' exclude group: 'com.google.code.gson'
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-legacy
|
||||
implementation "net.kyori:adventure-text-serializer-legacy:${adventure_serializer_version}" exclude group: 'org.jetbrains'
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
filesMatching("bungee.yml") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
45
core-bungeecord/build.gradle.kts
Normal file
45
core-bungeecord/build.gradle.kts
Normal file
@@ -0,0 +1,45 @@
|
||||
evaluationDependsOn(":core-common")
|
||||
|
||||
dependencies {
|
||||
compileOnly("net.md-5:bungeecord-api:1.20-R0.1-SNAPSHOT")
|
||||
|
||||
implementation(project(":core-common")) {
|
||||
isTransitive = false
|
||||
}
|
||||
val adventureVersion = property("adventure_version")
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bungeecord
|
||||
implementation("net.kyori:adventure-platform-bungeecord:${adventureVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
exclude(group = "com.google.code.gson")
|
||||
}
|
||||
val adventureSerializerVersion = property("adventure_serializer_version")
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
|
||||
implementation("net.kyori:adventure-text-minimessage:${adventureSerializerVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
}
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson
|
||||
implementation("net.kyori:adventure-text-serializer-gson:${adventureSerializerVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
exclude(group = "com.google.code.gson")
|
||||
}
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-legacy
|
||||
implementation("net.kyori:adventure-text-serializer-legacy:${adventureSerializerVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
}
|
||||
|
||||
//noinspection GradlePackageUpdate
|
||||
implementation("com.zaxxer:HikariCP:${property("HikariCP_version")}") {
|
||||
exclude(group = "org.slf4j")
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
processResources {
|
||||
filesMatching("bungee.yml") {
|
||||
expand(project.properties)
|
||||
}
|
||||
}
|
||||
shadowJar {
|
||||
archiveBaseName = "HamsterCore-BungeeCord"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user