Skip to content

Commit

Permalink
Merge pull request #240 from gradle/leo/use-version-catalogs
Browse files Browse the repository at this point in the history
Use version catalogs
  • Loading branch information
leonard84 committed Nov 27, 2023
2 parents 3ec652c + 0e0d4e8 commit 654136a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
12 changes: 12 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
18 changes: 9 additions & 9 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 654136a

Please sign in to comment.