Skip to content

Commit

Permalink
More adjustments for github groovy-joint-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley committed Aug 24, 2024
1 parent 15c9f93 commit 8c4c67b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ buildscript {
}

ext {
// https://github.com/grails/grails-data-mapping/actions/runs/10528294929/job/29180566819
groovyVersion = /*System.getenv('CI_GROOVY_VERSION') ?:*/ project.groovyVersion
groovyVersion = System.getenv('CI_GROOVY_VERSION') ?: project.groovyVersion
// overall project version
isCiBuild = System.getenv().get("CI") as Boolean
isSnapshot = project.projectVersion.endsWith("-SNAPSHOT")
Expand Down Expand Up @@ -61,8 +60,8 @@ allprojects {
all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.codehaus.groovy') {
details.useTarget(group: 'org.apache.groovy', name: details.requested.name, version: groovyVersion)
if ((details.requested.group == 'org.codehaus.groovy' || details.requested.group == 'org.apache.groovy') && details.requested.name != 'groovy-bom') {
details.useTarget(group: 'org.apache.groovy', name: details.requested.name, version: "$groovyVersion")
details.because "The dependency coordinates are changed in Apache Groovy 4, plus ensure version"
}
}
Expand Down

0 comments on commit 8c4c67b

Please sign in to comment.