This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 28cbd4cc31dcba650241d312f1fc78c12da890d3 Merge: f5bbe69e75 9ff6ee9555 Author: James Daugherty <[email protected]> AuthorDate: Thu Oct 8 12:13:47 2026 -0400 Merge branch '8.1.x' into 9.0.x .agents/skills/gradle-developer/SKILL.md | 48 +++- .github/vote_templates/staged.txt | 3 +- .github/workflows/benchmark.yml | 4 +- .github/workflows/build-health.yml | 13 +- .github/workflows/codeanalysis.yml | 4 +- .github/workflows/codestyle.yml | 6 +- .github/workflows/coverage.yml | 4 +- .github/workflows/end-to-end.yml | 2 +- .github/workflows/forge-deploy-aws.yml | 2 +- .github/workflows/gradle.yml | 102 ++++++-- .github/workflows/groovy-snapshot-canary.yml | 4 +- .github/workflows/rat.yml | 2 +- .github/workflows/release-publish-docs.yml | 23 +- .github/workflows/release-verify.yml | 4 +- .github/workflows/release.yml | 150 +++++++++--- .github/workflows/sitemesh2.yml | 4 +- .github/workflows/validate-actions.yml | 2 +- .github/workflows/vulnerability-scan.yml | 4 +- RELEASE.md | 77 +++++- build-logic/docs-core/build.gradle | 50 ++-- .../grails/doc/asciidoc/AsciidocConverter.groovy | 86 +++++++ .../groovy/grails/doc/git/FetchTagsTask.groovy | 66 ++++-- .../grails/doc/gradle/ConvertAsciidocTask.groovy | 201 ++++++++++++++++ .../doc/gradle/ConvertAsciidocWorkAction.groovy | 38 ++- .../gradle/ConvertAsciidocWorkParameters.groovy | 27 ++- .../tasks/bom/ExtractDependenciesTask.groovy | 83 ++++--- .../doc/asciidoc/AsciidocConverterSpec.groovy | 133 +++++++++++ .../groovy/grails/doc/git/FetchTagsTaskSpec.groovy | 113 +++++++++ .../doc/gradle/ConvertAsciidocTaskSpec.groovy | 182 +++++++++++++++ build-logic/gradle.properties | 1 + .../grails/buildsrc/GrailsCodeStylePlugin.groovy | 18 +- .../grails/buildsrc/GroovydocEnhancerPlugin.groovy | 69 +++--- .../apache/grails/buildsrc/PublishPlugin.groovy | 81 ++++--- .../org/apache/grails/buildsrc/SbomPlugin.groovy | 11 +- .../grails/buildsrc/TestTaskShardingPlugin.groovy | 31 ++- .../buildsrc/GrailsCodeStylePluginSpec.groovy | 38 ++- .../buildsrc/GroovydocEnhancerPluginSpec.groovy | 46 ++++ .../grails/buildsrc/PublishPluginSpec.groovy | 82 +++++++ .../apache/grails/buildsrc/SbomPluginSpec.groovy | 39 ++++ .../buildsrc/TestTaskShardingPluginSpec.groovy | 69 +++++- build.gradle | 7 +- buildSrc/build.gradle | 1 - dependencies.gradle | 6 +- end-to-end/agent-skills-plain-build/build.gradle | 2 +- end-to-end/agent-skills/build.gradle | 2 +- end-to-end/gradle.properties | 2 +- .../taglib/TagLibraryIndexIncrementalSpec.groovy | 3 +- etc/bin/download-release-artifacts.sh | 38 ++- etc/bin/reset-verify.sh | 1 + ...distribution.sh => verify-docs-distribution.sh} | 55 ++--- etc/bin/verify-docs-reproducible.sh | 85 +++++++ etc/bin/verify-source-distribution.sh | 2 +- etc/bin/verify.sh | 21 ++ gradle.properties | 11 +- gradle/functional-test-config.gradle | 10 +- gradle/grails-data-tck-config.gradle | 10 +- gradle/hibernate5-test-config.gradle | 37 ++- gradle/hibernate7-test-config.gradle | 37 ++- gradle/mongodb-forked-test-config.gradle | 30 ++- gradle/mongodb-test-config.gradle | 32 ++- gradle/publish-root-config.gradle | 8 +- gradle/rat-root-config.gradle | 3 + gradle/redis-test-config.gradle | 30 ++- gradle/spring-security-test-config.gradle | 34 ++- gradle/test-config.gradle | 40 ++-- grails-bom/base/build.gradle | 46 ++-- grails-bom/default/build.gradle | 34 ++- grails-bom/hibernate5/build.gradle | 34 ++- grails-bom/hibernate7/build.gradle | 34 ++- grails-bom/neo4j/build.gradle | 34 ++- .../groovy/org/grails/config/NavigableMap.groovy | 94 ++++---- .../groovy/grails/config/NavigableMapSpec.groovy | 58 +++++ .../main/groovy/grails/boot/GrailsBanner.groovy | 5 +- .../external/ExternalConfigRunListener.groovy | 12 +- .../config/NavigableMapPropertySource.groovy | 32 +-- .../boot/GrailsBannerVersionLookupSpec.groovy | 29 +++ .../config/NavigableMapPropertySourceSpec.groovy | 66 +++++- .../config/YamlPropertySourceLoaderSpec.groovy | 113 ++++++++- .../GroovyConfigPropertySourceLoaderSpec.groovy | 4 +- grails-data-docs/guide-developer/build.gradle | 17 +- grails-data-docs/guide-rx/build.gradle | 17 +- grails-data-docs/guide-whats-new/build.gradle | 17 +- grails-data-docs/stage/build.gradle | 20 +- grails-data-graphql/docs/build.gradle | 28 +-- grails-data-hibernate5/docs/build.gradle | 21 +- grails-data-hibernate7/docs/build.gradle | 22 +- grails-data-mongodb/docs/build.gradle | 18 +- grails-data-neo4j/docs/build.gradle | 23 +- grails-doc/build.gradle | 52 +++-- grails-doc/distribution-artifacts/LICENSE | 260 +++++++++++++++++++++ grails-doc/distribution-artifacts/NOTICE | 5 + .../licenses/asciidoctor-stylesheet-license.txt | 22 ++ .../licenses/font-awesome-css-license.txt | 21 ++ .../licenses/font-awesome-font-license.txt | 92 ++++++++ .../licenses/normalize-css-license.txt | 19 ++ .../gradleBuild/gradleConfigurationCache.adoc | 88 +++++++ grails-doc/src/en/guide/conf/config.adoc | 26 +++ .../src/en/guide/gettingStarted/agentSkills.adoc | 4 +- grails-doc/src/en/guide/introduction/whatsNew.adoc | 6 + .../en/guide/theWebLayer/gsp/gspInSpringBoot.adoc | 2 +- .../gsp/taglibs/usingJSPTagLibraries.adoc | 2 +- grails-doc/src/en/guide/toc.yml | 1 + .../src/en/guide/upgrading/upgrading70x.adoc | 4 + .../src/en/guide/upgrading/upgrading80x.adoc | 22 ++ grails-doc/src/en/ref/Tags - Fields/all.adoc | 11 + grails-doc/src/en/ref/Tags - Fields/display.adoc | 2 + grails-doc/src/en/ref/Tags - Fields/table.adoc | 2 + .../plugin/formfields/FormFieldsTagLib.groovy | 28 ++- .../taglib/AbstractFormFieldsTagLibSpec.groovy | 15 ++ .../plugin/formfields/taglib/AllTagSpec.groovy | 39 ++++ .../plugin/formfields/taglib/DisplayTagSpec.groovy | 22 ++ .../plugin/formfields/taglib/TableSpec.groovy | 24 ++ grails-forge/build.gradle | 5 +- grails-forge/buildSrc/build.gradle | 1 - .../buildsrc/WriteGrailsVersionInfoTask.groovy | 17 ++ .../org/grails/forge/rocker/plugin/RockerTask.java | 5 +- grails-forge/gradle.properties | 3 +- grails-forge/gradle/code-style-config.gradle | 53 ++++- grails-forge/gradle/publish-root-config.gradle | 8 +- grails-forge/gradle/test-config.gradle | 14 +- .../main/java/org/grails/forge/api/VersionDTO.java | 11 + .../forge/api/ApplicationControllerSpec.groovy | 13 ++ grails-forge/grails-forge-core/build.gradle | 5 +- .../asciidoctor/template/asciidocGradle.rocker.raw | 7 + .../grails/forge/feature/build/gradle/Gradle.java | 1 + .../java/org/grails/forge/util/VersionInfo.java | 25 +- .../grails/forge/build/gradle/GradleSpec.groovy | 11 + .../feature/asciidoctor/AsciidoctorSpec.groovy | 10 + .../org/grails/forge/util/VersionInfoSpec.groovy | 54 +++++ .../asciidoctor/AsciidoctorBuildSpec.groovy | 46 ++++ grails-gradle/bom/build.gradle | 71 +++--- .../grails/gradle/common/PropertyFileUtils.groovy | 23 +- .../gradle/common/PropertyFileUtilsSpec.groovy | 104 ++++++--- grails-gradle/gradle.properties | 1 + grails-gradle/gradle/publish-root-config.gradle | 8 +- grails-gradle/gradle/test-config.gradle | 30 ++- .../plugin/commands/CliPublishingSupport.groovy | 9 +- .../plugin/commands/GrailsCliGradlePlugin.groovy | 25 +- .../plugin/core/FoundMainClassValueSource.groovy | 55 +++++ .../gradle/plugin/core/GrailsGradlePlugin.groovy | 54 ++--- .../plugin/commands/CliAutoDiscoverySpec.groovy | 16 ++ .../gradle/plugin/core/GradleSpecification.groovy | 7 + .../core/MainClassConfigurationCacheSpec.groovy | 146 ++++++++++++ .../auto-apply-bom-disabled/build.gradle | 14 +- .../producer/build.gradle | 6 +- .../bom-override-resolution/build.gradle | 13 +- .../test-projects/bom-platform-basic/build.gradle | 25 +- .../bom-platform-default-dependencies/build.gradle | 40 ++-- .../test-projects/bom-platform-manual/build.gradle | 20 +- .../bom-platform-micronaut/build.gradle | 11 +- .../bom-property-overrides-basic/build.gradle | 14 +- .../test-projects/boot-run-pid-web/build.gradle | 12 +- .../test-projects/boot-run-pid/build.gradle | 12 +- .../test-projects/bootrun-classes-dir/build.gradle | 21 +- .../bootrun-console-ansi/build.gradle | 7 +- .../bootrun-startup-progress/build.gradle | 6 +- .../cli-companion-autodiscovery/app/build.gradle | 56 +++-- .../plain-library/build.gradle | 6 + .../main/java/org/example/plain/PlainLibrary.java | 4 + .../cli-companion-autodiscovery/settings.gradle | 2 +- .../cli-companion-publishing/resolver/build.gradle | 2 +- .../app/build.gradle | 17 +- .../build.gradle | 20 +- .../compiler-config-incremental/build.gradle | 5 +- .../compiler-config-late-assignment/build.gradle | 13 +- .../compiler-config-late-source-set/build.gradle | 5 +- .../build.gradle | 7 + .../compiler-config-plugin-inputs/build.gradle | 4 +- .../build.gradle | 19 +- .../compiler-config-standalone-task/build.gradle | 6 +- .../compiler-config-star-imports/build.gradle | 3 +- .../fork-settings-custom/build.gradle | 9 +- .../fork-settings-defaults/build.gradle | 16 +- .../build.gradle | 17 +- .../gorm-default-id-type/build.gradle | 20 +- .../gsp-compile-classpath/build.gradle | 42 ++-- .../test-projects/gsp-compile-static/build.gradle | 18 +- .../java-compat-no-toolchain/build.gradle | 8 +- .../java-compat-toolchain-23/build.gradle | 8 +- .../java-compat-toolchain-24/build.gradle | 8 +- .../java-compat-toolchain-current/build.gradle | 8 +- .../legacy-command-discovery/app/build.gradle | 5 +- .../main-class-configuration-cache/build.gradle | 22 +- .../gradle.properties | 1 + .../main-class-configuration-cache/settings.gradle | 17 +- .../src/main/groovy/example/Application.groovy | 16 +- .../boot/config/GrailsAutoConfiguration.groovy | 17 +- .../test-projects/native-defaults-aot/build.gradle | 3 +- .../test-projects/native-defaults-off/build.gradle | 6 +- .../test-projects/native-defaults-on/build.gradle | 3 +- .../native-metadata-ordering/build.gradle | 25 +- .../no-toolchain-javaexec/build.gradle | 4 +- .../plugin-ast-classes-dirs/build.gradle | 6 +- .../plugin-with-cli/build.gradle | 67 +++--- .../plugin-without-cli/build.gradle | 28 +-- .../preserve-params-default/build.gradle | 7 +- .../preserve-params-disabled/build.gradle | 7 +- .../preserve-params-enabled/build.gradle | 7 +- .../preserve-params-null/build.gradle | 7 +- .../preserve-params-provider-null/build.gradle | 7 +- .../test-projects/toolchain-command/build.gradle | 13 +- .../test-projects/toolchain-javaexec/build.gradle | 12 +- .../test-projects/toolchain-override/build.gradle | 11 +- .../test-projects/toolchain-test/build.gradle | 12 +- .../grails/gsp/jsp/TagLibraryResolverImpl.groovy | 20 +- .../grails/gsp/jsp/TagLibraryResolverTests.groovy | 90 +++++++ .../java/grails/gsp/boot/GspAutoConfiguration.java | 16 +- .../gsp/boot/GspAutoConfigurationSpec.groovy | 48 ++++ grails-profiles/base/skeleton/gradle.properties | 1 + .../skills/grails-8-upgrade/SKILL.md | 1 + .../SpringSecurityCoreGrailsPlugin.groovy | 4 +- .../SpringSecurityCoreListBindingSpec.groovy | 100 ++++++++ .../rest/testapp-profile/build.gradle | 27 ++- grails-test-examples/benchmarks/build.gradle | 7 +- .../externalconfig/ExternalConfigSpec.groovy | 43 +++- .../plugin/externalconfig/MergedConfigSpec.groovy | 2 +- grails-test-examples/geb/build.gradle | 4 +- grails-test-report/build.gradle | 98 ++++---- grails-test-suite-uber/build.gradle | 8 +- settings.gradle | 5 - 220 files changed, 4717 insertions(+), 1398 deletions(-) diff --cc build-logic/plugins/src/test/groovy/org/apache/grails/buildsrc/GroovydocEnhancerPluginSpec.groovy index 135dcfbe98,4d366e70fb..30f6a01092 --- a/build-logic/plugins/src/test/groovy/org/apache/grails/buildsrc/GroovydocEnhancerPluginSpec.groovy +++ b/build-logic/plugins/src/test/groovy/org/apache/grails/buildsrc/GroovydocEnhancerPluginSpec.groovy @@@ -160,57 -160,50 +160,103 @@@ class GroovydocEnhancerPluginSpec exten overridden.output.contains('finished with non-zero exit value') } + void 'Groovydoc tasks in different projects do not overlap in a parallel build'() { + given: 'two documentation tasks competing for runner memory' + new File(projectDir, 'settings.gradle').text = "include 'one', 'two'" + ['one', 'two'].each { name -> + File directory = new File(projectDir, name) + directory.mkdirs() + new File(directory, 'Sample.groovy').text = 'class Sample {}' + } + new File(projectDir, 'build.gradle').text = """ + plugins { + id 'org.apache.grails.buildsrc.groovydoc-enhancer' apply false + } + subprojects { + apply plugin: 'groovy' + ext.javaVersion = 21 + apply plugin: 'org.apache.grails.buildsrc.groovydoc-enhancer' + tasks.register('apiDocs', org.gradle.api.tasks.javadoc.Groovydoc) { + source file('Sample.groovy') + classpath = files() + groovyClasspath = files() + destinationDir = layout.buildDirectory.dir('docs').get().asFile + // Observe scheduling without generating a large documentation tree. + actions.clear() + doLast { + File active = rootProject.file('active-documentation-task') + assert active.createNewFile(): 'Groovydoc tasks overlapped' + try { + Thread.sleep(1000) + destinationDir.mkdirs() + new File(destinationDir, 'index.html').text = project.name + } finally { + active.delete() + } + } + } + } + """ + + when: 'Gradle can run both subprojects concurrently' + def result = GradleRunner.create() + .withProjectDir(projectDir) + .withPluginClasspath() + .withArguments('apiDocs', '--parallel', '--max-workers=2', + '-Dorg.gradle.jvmargs=-Xmx512m', '--stacktrace') + .build() + + then: 'both tasks finish without simultaneous documentation work' + result.task(':one:apiDocs').outcome == TaskOutcome.SUCCESS + result.task(':two:apiDocs').outcome == TaskOutcome.SUCCESS + new File(projectDir, 'one/build/docs/index.html').text == 'one' + new File(projectDir, 'two/build/docs/index.html').text == 'two' + } + + void 'groovydoc reads the source directories and links the build script sets when the configuration cache is reused'() { + given: 'a build script that documents a source directory of its own and links an external package' + writeGroovydocProject() + File extraSource = new File(projectDir, 'extra/com/example/extra/Extra.groovy') + extraSource.parentFile.mkdirs() + extraSource.text = ''' + package com.example.extra + + /** Documented outside the main source set. */ + class Extra { + /** @return a list */ + List<String> names() { [] } + } + '''.stripIndent() + new File(projectDir, 'build.gradle') << ''' + tasks.named('groovydoc', Groovydoc) { + ext.groovydocSourceDirs = [file('src/main/groovy'), file('extra')] + ext.groovydocLinks = [[packages: 'java.', href: 'https://docs.oracle.com/en/java/javase/21/docs/api/']] + } + ''' + + when: 'groovydoc runs twice from a clean build, storing and then reusing the configuration cache entry' + def stored = runGroovydocFromClean() + def reused = runGroovydocFromClean() + + then: + stored.output.contains('Configuration cache entry stored') + reused.output.contains('Configuration cache entry reused') + reused.task(':groovydoc').outcome == TaskOutcome.SUCCESS + + and: 'both source directories were documented' + new File(projectDir, 'build/docs/groovydoc/com/example/Documented.html').exists() + File extra = new File(projectDir, 'build/docs/groovydoc/com/example/extra/Extra.html') + extra.exists() + + and: 'the external link was applied' + extra.text.contains('https://docs.oracle.com/en/java/javase/21/docs/api/') + } + + private def runGroovydocFromClean() { + GradleRunner.create() + .withProjectDir(projectDir) + .withArguments('clean', 'groovydoc', '--configuration-cache') + .withPluginClasspath() + .build() + } } diff --cc build-logic/plugins/src/test/groovy/org/apache/grails/buildsrc/SbomPluginSpec.groovy index 658459dc4b,8987d2d1cc..fd196ba84c --- a/build-logic/plugins/src/test/groovy/org/apache/grails/buildsrc/SbomPluginSpec.groovy +++ b/build-logic/plugins/src/test/groovy/org/apache/grails/buildsrc/SbomPluginSpec.groovy @@@ -102,24 -104,36 +108,57 @@@ class SbomPluginSpec extends Specificat e.message.contains('LGPL-2.1-only') } + void "JLine 4 Maven jars use the BSD-3-Clause correction for new versions"() { + expect: + SbomPlugin.pickLicense(LOGGER, 'grails-console', 'grails-console', + 'pkg:maven/org.jline/[email protected]?type=jar', bsd4Choice()).id == 'BSD-3-Clause' + } + + void "JLine 4 license correction is limited to JLine 4 Maven jars"() { + when: + SbomPlugin.pickLicense(LOGGER, 'grails-console', 'grails-console', bomRef, bsd4Choice()) + + then: + GradleException e = thrown(GradleException) + e.message.contains('BSD-4-Clause') + + where: + bomRef << [ + 'pkg:maven/com.example/[email protected]?type=jar', + 'pkg:maven/org.jline/[email protected]?type=jar' + ] + } ++ + void "the sbom is written and made reproducible with the configuration cache, also when it is reused"() { + given: 'a library with no dependencies' + new File(projectDir, 'settings.gradle').text = "rootProject.name = 'library'" + new File(projectDir, 'gradle.properties').text = 'projectVersion=1.0.0' + new File(projectDir, 'build.gradle').text = """ + plugins { + id 'java-library' + id 'org.apache.grails.buildsrc.sbom' + } + """ + + when: 'the sbom is built from a clean build, storing and then reusing the configuration cache entry' + BuildResult stored = buildSbomFromClean() + BuildResult reused = buildSbomFromClean() + + then: + stored.output.contains('Configuration cache entry stored') + reused.output.contains('Configuration cache entry reused') + + and: 'the reused build rewrote the sbom as the stored one did' + String sbom = new File(projectDir, 'build/library-1.0.0-sbom.json').text + sbom.contains('"timestamp": "1970-01-01T00:00:00Z"') + sbom.contains('"serialNumber": "urn:uuid:') + } + + private BuildResult buildSbomFromClean() { + GradleRunner.create() + .withProjectDir(projectDir) + .withArguments('clean', 'cyclonedxDirectBom', '--configuration-cache', '--stacktrace') + .withPluginClasspath() + .build() + } } diff --cc end-to-end/gradle.properties index 2803e61028,73a3eedf17..c3444d9c26 --- a/end-to-end/gradle.properties +++ b/end-to-end/gradle.properties @@@ -17,9 -17,9 +17,9 @@@ # under the License. # -projectVersion=8.1.0-SNAPSHOT +projectVersion=9.0.0-SNAPSHOT org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx5G - org.gradle.configuration-cache=false + org.gradle.configuration-cache=true org.gradle.caching=true org.gradle.parallel=true diff --cc gradle.properties index 0e22aea906,5b2ddf054a..18a0a37df3 --- a/gradle.properties +++ b/gradle.properties @@@ -17,12 -17,16 +17,16 @@@ projectVersion=9.0.0-SNAPSHO javaVersion=21 -githubBranch=8.1.x +githubBranch=9.0.x + + # Last day this release line is supported (ISO yyyy-MM-dd). Grails Forge reports it from /versions. + # Each release branch sets its own value. -grailsEndOfSupport=2027-07-31 ++grailsEndOfSupport=2027-12-31 githubSlug=apache/grails-core -# 8.1.0-SNAPSHOT has never been published, so the Spring Dependency Management +# 9.0.0-SNAPSHOT has never been published, so the Spring Dependency Management # example cannot resolve its grails-bom import yet. Delete this line once the first -# 8.1.0-SNAPSHOT publish succeeds - the flag is presence-based, so setting it to +# 9.0.0-SNAPSHOT publish succeeds - the flag is presence-based, so setting it to # false still excludes the example. See settings.gradle for the full explanation. bomSnapshotNotPublished=true diff --cc gradle/hibernate5-test-config.gradle index 7261139fb5,d98f9e456f..48ccabeaa9 --- a/gradle/hibernate5-test-config.gradle +++ b/gradle/hibernate5-test-config.gradle @@@ -24,10 -24,7 +24,11 @@@ dependencies add('testRuntimeOnly', 'org.objenesis:objenesis') } +tasks.withType(GroovyCompile).configureEach { + options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true'] +} + + boolean cacheTests = !doNotCacheTests tasks.withType(Test).configureEach { // Honor DO_NOT_CACHE_TESTS=1 so developers can repeatedly invoke the same test command // without --rerun-tasks (and without recompiling everything else). diff --cc gradle/mongodb-forked-test-config.gradle index 7357653f4c,ff7f7f0b02..06cb0055b1 --- a/gradle/mongodb-forked-test-config.gradle +++ b/gradle/mongodb-forked-test-config.gradle @@@ -24,14 -24,11 +24,15 @@@ dependencies add('testRuntimeOnly', 'org.objenesis:objenesis') } +tasks.withType(GroovyCompile).configureEach { + options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true'] +} + tasks.named('compileTestGroovy', GroovyCompile) { - groovyOptions.forkOptions.jvmArgs = ['-Xmx768m'] + groovyOptions.forkOptions.jvmArgs = ['-Xmx768m', '-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true'] } + boolean cacheTests = !doNotCacheTests tasks.withType(Test).configureEach { // Honor DO_NOT_CACHE_TESTS=1 so developers can repeatedly invoke the same test command // without --rerun-tasks (and without recompiling everything else). diff --cc gradle/mongodb-test-config.gradle index 46d3259c92,f6915d8ccb..ab33f71280 --- a/gradle/mongodb-test-config.gradle +++ b/gradle/mongodb-test-config.gradle @@@ -24,14 -24,11 +24,15 @@@ dependencies add('testRuntimeOnly', 'org.objenesis:objenesis') } +tasks.withType(GroovyCompile).configureEach { + options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true'] +} + tasks.named('compileTestGroovy', GroovyCompile) { - groovyOptions.forkOptions.jvmArgs = ['-Xmx768m'] + groovyOptions.forkOptions.jvmArgs = ['-Xmx768m', '-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true'] } + boolean cacheTests = !doNotCacheTests tasks.withType(Test).configureEach { // Honor DO_NOT_CACHE_TESTS=1 so developers can repeatedly invoke the same test command // without --rerun-tasks (and without recompiling everything else).
