build: 将构建脚本转换成 kotlin 语言
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
setArchivesBaseName("HamsterCore-Common")
|
||||
|
||||
dependencies {
|
||||
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
||||
//noinspection GradlePackageUpdate
|
||||
//noinspection VulnerableLibrariesLocal
|
||||
compileOnly 'com.google.code.gson:gson:2.8.0'
|
||||
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-api
|
||||
implementation "net.kyori:adventure-platform-api:${adventure_version}" exclude group: 'org.jetbrains'
|
||||
// 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'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
36
core-common/build.gradle.kts
Normal file
36
core-common/build.gradle.kts
Normal file
@@ -0,0 +1,36 @@
|
||||
@file:Suppress("VulnerableLibrariesLocal")
|
||||
|
||||
dependencies {
|
||||
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
||||
//noinspection GradlePackageUpdate
|
||||
//noinspection VulnerableLibrariesLocal
|
||||
compileOnly("com.google.code.gson:gson:2.8.0")
|
||||
val adventureVersion = property("adventure_version")
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-api
|
||||
implementation("net.kyori:adventure-platform-api:${adventureVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
}
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
shadowJar {
|
||||
archiveBaseName = "HamsterCore-Common"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user