Skip to content

Commit

Permalink
Merge pull request #326 from codeconsole/groovy4
Browse files Browse the repository at this point in the history
Groovy 4
  • Loading branch information
codeconsole authored Sep 6, 2024
2 parents 94f472c + 665fbea commit 00e6554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
19 changes: 2 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,10 @@ java {
withSourcesJar()
}

configurations.configureEach {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
// This is a workaround for grails-shell exposing a different version of Groovy
// than the one used by Gradle. This causes issues with the Groovy compiler.
if (details.requested.group == 'org.apache.groovy') {
details.useTarget(group: "org.codehaus.groovy", name: details.requested.name, version: GroovySystem.version)
details.because "Use Groovy 3.0.x library shipped with Gradle"
}

if (details.requested.group == 'org.codehaus.groovy') {
details.useTarget(group: "org.codehaus.groovy", name: details.requested.name, version: GroovySystem.version)
details.because "Use Groovy 3.0.x library shipped with Gradle"
}
}
}
// resolve conflict from Gradle's version of Groovy. Not needed if Gradle switches to 4.0
configurations.configureEach { exclude group: 'org.apache.groovy', module: 'groovy-xml' }

dependencies {
implementation ( "org.codehaus.groovy:groovy-xml:$groovyVersion" )
implementation ( "org.codehaus.groovy:groovy-templates:$groovyVersion" )
implementation "io.github.gradle-nexus:publish-plugin:2.0.0"
implementation "com.bmuschko:gradle-nexus-plugin:2.3.1"
implementation "org.grails:grails-bootstrap:$grailsVersion"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ projectVersion=7.0.0-SNAPSHOT
grailsVersion=7.0.0-SNAPSHOT
grailsShellVersion=7.0.0-SNAPSHOT
springBootVersion=3.2.6
groovyVersion=3.0.21
groovyVersion=4.0.22
org.gradle.caching=true
org.gradle.daemon=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M -XX:MaxMetaspaceSize=512M

0 comments on commit 00e6554

Please sign in to comment.