Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
6b8c1ad
build: Groovy 5.0.0-SNAPSHOT and Spock 2.4-M6-groovy-4.0
matrei May 15, 2025
88baa17
build: add `-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true`
matrei May 15, 2025
f3edd09
fix: Groovy 5 compatibility
matrei May 15, 2025
d6b30be
test: Add `@PendingFeatureIf` for currently incompatible tests
matrei May 15, 2025
00fcb6c
Merge remote-tracking branch 'upstream/7.0.x' into groovy-5
jdaugherty Sep 8, 2025
cb7d7ff
feature: allow pulling staged versions of groovy for testing
jdaugherty Sep 8, 2025
cd9ff39
fix: switch to groovy.transform.Generated
jdaugherty Sep 8, 2025
457d6cd
chore: testing push access to grails-core
matrei Sep 9, 2025
c879a1c
Revert "chore: testing push access to grails-core"
matrei Sep 9, 2025
ace4d30
Merge branch '7.0.x' into groovy-5
matrei Oct 28, 2025
bd260ef
test(deps): update to Spock 2.4-groovy-5.0-SNAPSHOT
matrei Oct 29, 2025
30b1611
fix(deps): update to Groovy 5.0.2
matrei Oct 29, 2025
329f31e
test: remove `@PendingFeature` for passing tests
matrei Oct 29, 2025
94a02b8
style: fix imports
matrei Oct 29, 2025
41b8e09
Merge branch '7.0.x' into groovy-5
matrei Oct 29, 2025
bcbdff4
build: fix snapshot repositories
matrei Oct 29, 2025
efa1502
build: fix sbom issues
matrei Oct 29, 2025
72bdc31
Merge branch '7.0.x' into groovy-5
matrei Jan 13, 2026
554b802
fix: migrate to new groovysh api
matrei Jan 15, 2026
9427f51
chore: bump Groovy to 5.0.3-SNAPSHOT
matrei Jan 15, 2026
c54de20
fix: more Groovy 5 compatibility changes
matrei Jan 15, 2026
bb53f13
chore: bump Groovy to 5.0.4-SNAPSHOT
matrei Jan 15, 2026
f5d023f
Merge branch '8.0.x' into groovy-5
jamesfredley Feb 4, 2026
765ff5d
fix(deps): Bump Groovy to 5.0.5
matrei Apr 1, 2026
f64e026
test: Remove `@PendingFeature` from passing test
matrei Apr 1, 2026
d1b8b5f
fix(deps): Bump Grails Spring Security to 7.0.1
matrei Apr 1, 2026
393bbfd
Merge remote-tracking branch 'apache/8.0.x' into groovy-5
matrei Apr 1, 2026
4fe600e
Merge origin/groovy-5 into grails8-groovy5-sb4 (resolve: Groovy 5.0.5…
jamesfredley Apr 4, 2026
4a27159
cherry-pick 9574fe8: Groovy 5 compatibility fixes (66 files)
jamesfredley Apr 4, 2026
92b89ce
chore: remove unrelated files from previous branch
jamesfredley Apr 4, 2026
5fc3bda
fix: improve Groovy 5 compatibility - replace dynamic workarounds wit…
jamesfredley Apr 4, 2026
bfe1492
fix: pin Groovy to 5.0.3 and resolve downstream test failures
jamesfredley Apr 5, 2026
a427c33
Merge remote-tracking branch 'origin/8.0.x' into grails8-groovy5-sb4
jamesfredley Apr 5, 2026
28dd32f
fix(build): normalize line endings via .gitattributes
jamesfredley Apr 5, 2026
7896ef8
fix(grails-gradle): skip missing input dirs in mergeTestReports
jamesfredley Apr 5, 2026
708e03c
fix: bump Groovy to 5.0.5 with GROOVY-11907 workaround
jamesfredley Apr 6, 2026
60c04d6
fix: clean up Groovy 5.0.3 workarounds now on 5.0.5
jamesfredley Apr 6, 2026
e82ea6b
fix: resolve CI failures for CodeNarc and cyclonedxBom
jamesfredley Apr 6, 2026
83567f4
fix: resolve Groovy 5 CI failures for CodeNarc, controller params, an…
jamesfredley Apr 6, 2026
10a450c
fix: resolve Groovy 5 deep compatibility issues for MongoDB, Hibernat…
jamesfredley Apr 6, 2026
a6e9881
fix: work around Groovy 5 @CompileStatic instanceof bytecode bug
jamesfredley Apr 6, 2026
09a482f
chore: remove stale file
jamesfredley Apr 6, 2026
a191fec
fix: resolve remaining Hibernate5 config-binding and trait test failures
jamesfredley Apr 6, 2026
153e14c
fix: cherry-pick Groovy 5 fixes from Groovy 6 canary branch
jamesfredley Apr 6, 2026
e9ddaf3
fix: resolve functional test failures for cache, async, geb, views, a…
jamesfredley Apr 6, 2026
6ad040f
fix: replace DemoController method parameters with params access
jamesfredley Apr 6, 2026
d2441fb
fix: remove static fields from CommandLineHelper trait (GROOVY-11907)
jamesfredley Apr 6, 2026
ba430f3
fix: remove @Override from ProductController.index to avoid inherited…
jamesfredley Apr 7, 2026
3608a76
fix: add explicit render(Map) to GrailsApplicationCommand trait
jamesfredley Apr 7, 2026
43f98a1
fix: bypass named-arg render() in GenerateControllerCommand for Groovy 5
jamesfredley Apr 7, 2026
af8923a
Merge branch 'spring-boot-4' into grails8-groovy5-sb4
jamesfredley Apr 7, 2026
a0ee062
fix: convert GrailsApplicationCommand from trait to abstract class
jamesfredley Apr 7, 2026
6972dd1
Merge branch 'spring-boot-4' into grails8-groovy5-sb4
jamesfredley Apr 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Force LF line endings on checkout for all text files so that tools
# like Spotless (which normalize to LF) do not report format violations
# on systems where git is configured with core.autocrlf=true.
* text=auto eol=lf

# Files that must always have CRLF line endings on checkout
*.bat text eol=crlf
*.cmd text eol=crlf

# Binary files (no line ending normalization)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.jar binary
*.zip binary
*.gz binary
*.tgz binary
*.pdf binary
486 changes: 243 additions & 243 deletions LICENSE

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import org.gradle.api.tasks.bundling.Jar
import org.gradle.api.tasks.compile.GroovyCompile
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.javadoc.Javadoc
import org.gradle.api.tasks.testing.Test
import org.gradle.external.javadoc.StandardJavadocDocletOptions

import static org.apache.grails.buildsrc.GradleUtils.lookupPropertyByType
Expand Down Expand Up @@ -114,6 +115,9 @@ class CompilePlugin implements Plugin<Project> {
it.options.compilerArgs += ['-Xlint:-removal']
}
}
project.tasks.withType(Test).configureEach {
it.jvmArgs('-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true')
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,25 @@ class SbomPlugin implements Plugin<Project> {
]

private static Map<String, String> LICENSE_MAPPING = [
'pkg:maven/org.antlr/antlr4-runtime@4.7.2?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/jline/jline@2.14.6?type=jar' : 'BSD-2-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline@3.23.0?type=jar' : 'BSD-2-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.liquibase.ext/liquibase-hibernate5@4.27.0?type=jar': 'Apache-2.0', // maps incorrectly because of https://github.com/liquibase/liquibase/issues/2445 & the base pom does not define a license
'pkg:maven/com.oracle.coherence.ce/coherence-bom@25.03.1?type=pom': 'UPL-1.0', // does not have map based on license id
'pkg:maven/com.oracle.coherence.ce/coherence-bom@25.03.2?type=pom': 'UPL-1.0', // does not have map based on license id
'pkg:maven/com.oracle.coherence.ce/coherence-bom@22.06.2?type=pom': 'UPL-1.0', // does not have map based on license id
'pkg:maven/jline/jline@2.14.6?type=jar' : 'BSD-2-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/opensymphony/sitemesh@2.6.0?type=jar' : 'OpenSymphony', // custom license approved by legal LEGAL-707
'pkg:maven/org.jruby/jzlib@1.1.5?type=jar' : 'BSD-3-Clause'// https://web.archive.org/web/20240822213507/http://www.jcraft.com/jzlib/LICENSE.txt shows it's a 3 clause
'pkg:maven/org.antlr/antlr4-runtime@4.7.2?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jansi@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline@3.23.0?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-builtins@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-console@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-native@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-reader@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-style@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-terminal@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-terminal-jansi@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-terminal-jna@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jline/jline-terminal-jni@3.30.9?type=jar' : 'BSD-3-Clause', // maps incorrectly because of https://github.com/CycloneDX/cyclonedx-core-java/issues/205
'pkg:maven/org.jruby/jzlib@1.1.5?type=jar' : 'BSD-3-Clause', // https://web.archive.org/web/20240822213507/http://www.jcraft.com/jzlib/LICENSE.txt shows it's a 3 clause
'pkg:maven/org.liquibase.ext/liquibase-hibernate5@4.27.0?type=jar': 'Apache-2.0', // maps incorrectly because of https://github.com/liquibase/liquibase/issues/2445 & the base pom does not define a license
]

// we don't distribute these so these licenses are considered acceptable, but we still prefer ASF licenses.
Expand Down
5 changes: 2 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,15 @@ ext {
'commons-codec.version' : '1.18.0',
'commons-lang3.version' : '3.20.0',
'geb-spock.version' : '8.0.1',
'groovy.version' : '4.0.31',

'groovy.version' : '5.0.5',
'jquery.version' : '3.7.1',
'liquibase-hibernate5.version': '4.27.0',
'mongodb.version' : '5.5.1',
'rxjava.version' : '1.3.8',
'rxjava2.version' : '2.2.21',
'rxjava3.version' : '3.1.11',
'selenium.version' : '4.38.0',
'spock.version' : '2.3-groovy-4.0',
'spock.version' : '2.4-groovy-5.0',
'sitemesh.version' : '2.6.0',
'starter-sitemesh.version' : '3.2.2',
]
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ micronautPlatformVersion=5.0.0-M1

# Libraries only specific to test apps, these should not be exposed
ersatzVersion=4.0.1
grailsSpringSecurityVersion=7.0.2-SNAPSHOT
grailsSpringSecurityVersion=7.0.1
jbossTransactionApiVersion=2.0.0.Final
# Note: we do not import the micronaut bom in our tests to avoid spring version mismatches
micronautHttpClientVersion=4.9.9
Expand Down
11 changes: 11 additions & 0 deletions gradle/functional-test-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,22 @@ configurations.configureEach {
}
}

tasks.named('compileTestGroovy') {
options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true']
}

tasks.named('compileGroovy') {
options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true']
}

List<String> debugArguments = [
'-Xmx2g', '-Xdebug', '-Xnoagent', '-Djava.compiler=NONE',
'-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005'
]
tasks.withType(Test).configureEach { Test task ->

systemProperty('spock.iKnowWhatImDoing.disableGroovyVersionCheck', 'true')

boolean isHibernate5 = !project.name.startsWith('grails-test-examples-hibernate5')
boolean isMongo = !project.name.startsWith('grails-test-examples-mongodb')

Expand Down
4 changes: 4 additions & 0 deletions gradle/hibernate5-test-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
dependencies {
// https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
add('testRuntimeOnly', 'org.junit.platform:junit-platform-launcher')
// Required by Spock 2.4 to mock concrete classes (byte-buddy/objenesis are
// not transitive from spock-core in this configuration).
add('testRuntimeOnly', 'net.bytebuddy:byte-buddy')
add('testRuntimeOnly', 'org.objenesis:objenesis')
}

tasks.withType(Test).configureEach {
Expand Down
4 changes: 4 additions & 0 deletions gradle/mongodb-forked-test-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
dependencies {
// https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
add('testRuntimeOnly', 'org.junit.platform:junit-platform-launcher')
// Required by Spock 2.4 to mock concrete classes (byte-buddy/objenesis are
// not transitive from spock-core in this configuration).
add('testRuntimeOnly', 'net.bytebuddy:byte-buddy')
add('testRuntimeOnly', 'org.objenesis:objenesis')
}

tasks.named('compileTestGroovy', GroovyCompile) {
Expand Down
4 changes: 4 additions & 0 deletions gradle/mongodb-test-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
dependencies {
// https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
add('testRuntimeOnly', 'org.junit.platform:junit-platform-launcher')
// Required by Spock 2.4 to mock concrete classes (byte-buddy/objenesis are
// not transitive from spock-core in this configuration).
add('testRuntimeOnly', 'net.bytebuddy:byte-buddy')
add('testRuntimeOnly', 'org.objenesis:objenesis')
}

tasks.named('compileTestGroovy', GroovyCompile) {
Expand Down
2 changes: 2 additions & 0 deletions gradle/rat-root-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ tasks.named('rat') {
'grails-fields/grails-app/views/templates/_fields/*.gsp', // template files that people are expected to use in the end application
'grails-geb/src/main/templates/*.groovy', // template files that people are expected to use in the end application
'grails-doc/src/en/ref/Versions/Grails BOM.adoc', // exclude generated data
'grails-doc/src/en/ref/Versions/Grails BOM Hibernate5.adoc', // exclude generated data
'grails-doc/src/en/ref/Versions/Grails BOM Hibernate7.adoc', // exclude generated data
'grails-profiles/**/templates/**', // template files that people are expected to use in the end application
'grails-profiles/**/commands/**', // template files that people are expected to use in the end application
'grails-profiles/**/features/**', // template files that people are expected to use in the end application
Expand Down
13 changes: 13 additions & 0 deletions gradle/test-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ def java17moduleReflectionCompatibilityArguments = [
dependencies {
// https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
add('testRuntimeOnly', 'org.junit.platform:junit-platform-launcher')
// Required by Spock 2.4 to mock concrete classes (byte-buddy/objenesis are
// not transitive from spock-core in this configuration).
add('testRuntimeOnly', 'net.bytebuddy:byte-buddy')
add('testRuntimeOnly', 'org.objenesis:objenesis')
}

tasks.named('compileTestGroovy') {
options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true']
}

tasks.named('compileGroovy') {
options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true']
}

// Disable build cache for Groovy compilation in CI to ensure AST transformations are always applied.
Expand All @@ -46,6 +58,7 @@ tasks.withType(Test).configureEach {
// Disable build cache for tests in CI to ensure they always run
outputs.cacheIf { !isCiBuild }

systemProperty('spock.iKnowWhatImDoing.disableGroovyVersionCheck', 'true')
onlyIf {
![
'onlyFunctionalTests',
Expand Down
188 changes: 94 additions & 94 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading