diff --git a/gradle.properties b/gradle.properties index b1a9852..281f25f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,4 @@ org.gradle.jvmargs=-Xmx2G adventure_version=4.3.0 +adventure_serializer_version=4.13.0 HikariCP_version=5.0.1 \ No newline at end of file diff --git a/hamster-core-bukkit/build.gradle b/hamster-core-bukkit/build.gradle index c408ef5..327c526 100644 --- a/hamster-core-bukkit/build.gradle +++ b/hamster-core-bukkit/build.gradle @@ -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 + } } diff --git a/hamster-core-bukkit/src/main/resources/plugin.yml b/hamster-core-bukkit/src/main/resources/plugin.yml index c2995fb..c1af32c 100644 --- a/hamster-core-bukkit/src/main/resources/plugin.yml +++ b/hamster-core-bukkit/src/main/resources/plugin.yml @@ -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' diff --git a/hamster-core-common/build.gradle b/hamster-core-common/build.gradle index 50d84df..e7bcc23 100644 --- a/hamster-core-common/build.gradle +++ b/hamster-core-common/build.gradle @@ -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'