build: 更新 adventure 版本

This commit is contained in:
2023-06-04 15:46:37 +08:00
parent 602176c540
commit 094eb0a671
4 changed files with 20 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
org.gradle.jvmargs=-Xmx2G
adventure_version=4.3.0
adventure_serializer_version=4.13.0
HikariCP_version=5.0.1

View File

@@ -25,6 +25,12 @@ dependencies {
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bukkit
api "net.kyori:adventure-platform-bukkit:${adventure_version}"
oldJar "net.kyori:adventure-platform-bukkit:${adventure_version}"
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
api "net.kyori:adventure-text-minimessage:${adventure_serializer_version}"
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson
api "net.kyori:adventure-text-serializer-gson:${adventure_serializer_version}"
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-legacy
api "net.kyori:adventure-text-serializer-legacy:${adventure_serializer_version}"
// // https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
// api 'com.squareup.okhttp3:okhttp:4.10.0'
@@ -39,7 +45,11 @@ dependencies {
processResources {
inputs.property "version", project.version
filesMatching("plugin.yml") {
expand "version": project.version, "adventure_version": adventure_version, "HikariCP_version": HikariCP_version
expand "version": project.version,
"adventure_version": adventure_version,
"adventure_serializer_version": adventure_serializer_version,
"HikariCP_version": HikariCP_version
}
}

View File

@@ -19,6 +19,9 @@ loadbefore:
libraries:
- 'net.kyori:adventure-platform-bukkit:${adventure_version}'
- 'net.kyori:adventure-text-minimessage:${adventure_serializer_version}'
- 'net.kyori:adventure-text-serializer-gson:${adventure_serializer_version}'
- 'net.kyori:adventure-text-serializer-legacy:${adventure_serializer_version}'
- 'com.squareup.okhttp3:okhttp:4.10.0'
- 'com.zaxxer:HikariCP:5.0.1'

View File

@@ -10,16 +10,16 @@ dependencies {
compileOnly 'com.squareup.okhttp3:okhttp:4.10.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-api
compileOnly 'net.kyori:adventure-api:4.13.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
compileOnly 'net.kyori:adventure-text-minimessage:4.13.0'
compileOnly 'net.kyori:adventure-api:${adventure_version}'
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-api
compileOnly "net.kyori:adventure-platform-api:${adventure_version}"
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
compileOnly "net.kyori:adventure-text-minimessage:${adventure_serializer_version}"
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson
compileOnly 'net.kyori:adventure-text-serializer-gson:4.13.0'
compileOnly "net.kyori:adventure-text-serializer-gson:${adventure_serializer_version}"
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-legacy
compileOnly 'net.kyori:adventure-text-serializer-legacy:4.13.0'
compileOnly "net.kyori:adventure-text-serializer-legacy:${adventure_serializer_version}"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'