Skip to content

Commit 690a690

Browse files
committed
[ci skip] use libs.versions.toml
1 parent 4b66a4c commit 690a690

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

build.gradle.kts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ subprojects {
77
mavenCentral()
88
}
99

10-
dependencies {
11-
"testCompileOnly"("org.projectlombok:lombok:1.18.34")
12-
"testAnnotationProcessor"("org.projectlombok:lombok:1.18.34")
13-
"testImplementation"(platform("org.junit:junit-bom:5.10.0"))
14-
"testImplementation"("org.junit.jupiter:junit-jupiter")
10+
afterEvaluate {
11+
dependencies {
12+
"testCompileOnly"(libs.lombok)
13+
"testAnnotationProcessor"(libs.lombok)
14+
"testImplementation"(platform(libs.junit5.bom))
15+
"testImplementation"(libs.junit5.jupiter)
16+
}
1517
}
1618

1719
extensions.configure<JavaPluginExtension> {

gradle/libs.versions.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[versions]
2+
adventure = "4.17.0"
3+
gson = "2.11.0"
4+
guava = "33.3.1-jre"
5+
jspecify = "1.0.0"
6+
junit5 = "5.10.0"
7+
lombok = "1.18.34"
8+
zstd = "1.5.6-6"
9+
10+
[libraries]
11+
adventure-nbt = { module = "net.kyori:adventure-nbt", version.ref = "adventure" }
12+
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
13+
guava = { module = "com.google.guava:guava", version.ref = "guava" }
14+
jspecify = { module = "org.jspecify:jspecify", version.ref = "jspecify" }
15+
junit5-bom = { module = "org.junit:junit-bom", version.ref = "junit5" }
16+
junit5-jupiter = { module = "org.junit.jupiter:junit-jupiter" }
17+
lombok = { module = "org.projectlombok:lombok", version.ref = "lombok" }
18+
zstd-jni = { module = "com.github.luben:zstd-jni", version.ref = "zstd" }

slime-loader/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dependencies {
2-
api("com.google.guava:guava:33.3.1-jre")
3-
api("com.google.code.gson:gson:2.11.0")
4-
api("org.jspecify:jspecify:1.0.0")
5-
api("net.kyori:adventure-nbt:4.17.0")
6-
api("com.github.luben:zstd-jni:1.5.6-6")
2+
api(libs.adventure.nbt)
3+
api(libs.gson)
4+
api(libs.guava)
5+
api(libs.jspecify)
6+
api(libs.zstd.jni)
77
}

0 commit comments

Comments
 (0)