Skip to content

Commit 770440a

Browse files
committed
build: Use version.ref for all entries in libs.versions.toml
1 parent e22ac1f commit 770440a

File tree

1 file changed

+38
-18
lines changed

1 file changed

+38
-18
lines changed

gradle/libs.versions.toml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,64 @@
11
[versions]
22

33
kotlin = "2.1.20"
4+
kotlinx-binaryCompatibilityValidator = "0.17.0"
5+
kotlinx-serialization = "1.8.1"
6+
dokka = "1.9.10"
7+
annotations = "26.0.2"
8+
49
commandapi = "9.7.0"
10+
adventure = "4.3.1"
11+
bstats = "3.1.0"
12+
13+
skillapi = "3.102"
14+
battlelevels = "6.9.1"
15+
mmocore = "1.12.1-SNAPSHOT"
16+
mmoitems = "6.9.5-SNAPSHOT"
17+
mythiclib = "1.6.2-SNAPSHOT"
18+
heroes = "1.9.30-RELEASE"
19+
520
junit = "5.10.1"
6-
bukkitgradle = "1.0.0"
21+
kotest = "5.8.0"
22+
mockk = "1.13.8"
23+
24+
gradlePlugin-bukkitgradle = "1.0.0"
25+
gradlePlugin-shadow = "8.1.1"
26+
gradlePlugin-versions = "0.50.0"
727

828
[libraries]
929

1030
spigot-api = "org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT"
11-
bstats = "org.bstats:bstats-bukkit:3.0.2"
12-
annotations = "org.jetbrains:annotations:24.1.0"
13-
serialization-hocon = "org.jetbrains.kotlinx:kotlinx-serialization-hocon:1.8.1"
14-
adventure = "net.kyori:adventure-platform-bukkit:4.3.1"
31+
serialization-hocon = { module = "org.jetbrains.kotlinx:kotlinx-serialization-hocon", version.ref = "kotlinx-serialization" }
32+
annotations = { module = "org.jetbrains:annotations", version.ref = "annotations" }
1533

1634
commandapi = { module = "dev.jorel:commandapi-bukkit-core", version.ref = "commandapi" }
1735
commandapi-kotlin = { module = "dev.jorel:commandapi-bukkit-kotlin", version.ref = "commandapi" }
36+
adventure = { module = "net.kyori:adventure-platform-bukkit", version.ref = "adventure" }
37+
bstats = { module = "org.bstats:bstats-bukkit", version.ref = "bstats" }
1838

19-
rpgplugins-skillapi = "com.sucy:SkillAPI:3.102"
20-
rpgplugins-battlelevels = "me.robin:BattleLevels:6.9.1"
21-
rpgplugins-mmocore = "net.Indyuce:MMOCore-API:1.12.1-SNAPSHOT"
22-
rpgplugins-mmoitems = "net.Indyuce:MMOItems-API:6.9.5-SNAPSHOT"
23-
rpgplugins-mythiclib = "io.lumine:MythicLib-dist:1.6.2-SNAPSHOT"
24-
rpgplugins-heroes = "com.herocraftonline.heroes:Heroes:1.9.30-RELEASE"
39+
rpgplugins-skillapi = { module = "com.sucy:SkillAPI", version.ref = "skillapi" }
40+
rpgplugins-battlelevels = { module = "me.robin:BattleLevels", version.ref = "battlelevels" }
41+
rpgplugins-mmocore = { module = "net.Indyuce:MMOCore-API", version.ref = "mmocore" }
42+
rpgplugins-mmoitems = { module = "net.Indyuce:MMOItems-API", version.ref = "mmoitems" }
43+
rpgplugins-mythiclib = { module = "io.lumine:MythicLib-dist", version.ref = "mythiclib" }
44+
rpgplugins-heroes = { module = "com.herocraftonline.heroes:Heroes", version.ref = "heroes" }
2545

2646
# Test dependencies
2747
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
2848
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
2949
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit" }
30-
kotest-assertions = "io.kotest:kotest-assertions-core:5.8.0"
31-
mockk = "io.mockk:mockk:1.13.8"
50+
kotest-assertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
51+
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
3252

3353
# Build dependencies
34-
dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.9.10"
35-
kotlinx-binaryCompatibilityValidator = "org.jetbrains.kotlinx:binary-compatibility-validator:0.17.0"
54+
dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }
55+
kotlinx-binaryCompatibilityValidator = { module = "org.jetbrains.kotlinx:binary-compatibility-validator", version.ref = "kotlinx-binaryCompatibilityValidator" }
3656

3757
[plugins]
3858

39-
bukkitgradle = { id = "ru.endlesscode.bukkitgradle", version.ref="bukkitgradle" }
40-
shadow = "com.github.johnrengelman.shadow:8.1.1"
41-
versions = "com.github.ben-manes.versions:0.50.0"
59+
bukkitgradle = { id = "ru.endlesscode.bukkitgradle", version.ref = "gradlePlugin-bukkitgradle" }
60+
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "gradlePlugin-shadow" }
61+
versions = { id = "com.github.ben-manes.versions", version.ref = "gradlePlugin-versions" }
4262

4363
[bundles]
4464

0 commit comments

Comments
 (0)