Skip to content

Commit

Permalink
Derive Groovy version from implicit (Gradle) dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Apr 25, 2024
1 parent 02b74b8 commit c95fcf6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ configure(subprojects) {
}
}

def groovyVersion = libs.groovy.bom.get().version
def groovyVersion = GroovySystem.version
def groovyVersionMajorMinor = groovyVersion.split('\\.')[0..1] .join('.')

tasks.named("dependencyUpdates").configure {
Expand Down
3 changes: 0 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[versions]
groovy-version = '3.0.17'
junit5-version = '5.10.2'
slf4j-version = '2.0.13'

[libraries]
commons-validator = 'commons-validator:commons-validator:1.8.0'
# Use Groovy which corresponds to a Gradle version (of hsc build)
groovy-bom = { module = 'org.codehaus.groovy:groovy-bom', version.ref = 'groovy-version' }
jsoup = 'org.jsoup:jsoup:1.17.2'
junit-vintage = { module = 'org.junit.vintage:junit-vintage-engine', version.ref = 'junit5-version' }
lombok = 'org.projectlombok:lombok:1.18.32'
Expand Down
2 changes: 1 addition & 1 deletion htmlSanityCheck-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok

testImplementation platform(libs.groovy.bom)
testImplementation platform("org.codehaus.groovy:groovy-bom:${GroovySystem.version}")
testImplementation 'org.codehaus.groovy:groovy-xml'
}

Expand Down

0 comments on commit c95fcf6

Please sign in to comment.