diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 00000000..b9bd2c73 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,12 @@ +[versions] +asmVersion = "9.6" +spockframework = "2.3-groovy-3.0" + +[libraries] +spock-bom = { module = "org.spockframework:spock-bom", version.ref = "spockframework" } +spock-core.module = "org.spockframework:spock-core" +spock-junit4.module = "org.spockframework:spock-junit4" +nekohtml = "net.sourceforge.nekohtml:nekohtml:1.9.22" +asm = { module = "org.ow2.asm:asm", version.ref = "asmVersion" } +jetbrains-annotations = "org.jetbrains:annotations:24.1.0" +codenarc = "org.codenarc:CodeNarc:3.3.0-groovy-4.0" diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index edad2224..a5dd459a 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -53,18 +53,18 @@ configurations.compileOnly { } dependencies { - val asmVersion = "9.6" - plugin("org.ow2.asm:asm:${asmVersion}") + plugin(libs.asm) testImplementation(gradleTestKit()) testImplementation(localGroovy()) - testImplementation("org.spockframework:spock-core:2.3-groovy-3.0") - testImplementation("org.spockframework:spock-junit4:2.3-groovy-3.0") - testImplementation("net.sourceforge.nekohtml:nekohtml:1.9.22") - testImplementation("org.ow2.asm:asm:${asmVersion}") - testImplementation("org.jetbrains:annotations:24.1.0") - - codenarc("org.codenarc:CodeNarc:3.3.0-groovy-4.0") + testImplementation(platform(libs.spock.bom)) + testImplementation(libs.spock.core) + testImplementation(libs.spock.junit4) + testImplementation(libs.nekohtml) + testImplementation(libs.asm) + testImplementation(libs.jetbrains.annotations) + + codenarc(libs.codenarc) } tasks.shadowJar {