You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2025/11/26 17:34:40 UTC

(groovy) branch GROOVY_5_0_X updated (a4480d23d2 -> 775166b752)

This is an automated email from the ASF dual-hosted git repository.

emilles pushed a change to branch GROOVY_5_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


 discard a4480d23d2 `org.spockframework:spock-core:2.4-M7-groovy-5.0`
     new 775166b752 `org.spockframework:spock-core:2.4-M7-groovy-5.0`

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (a4480d23d2)
            \
             N -- N -- N   refs/heads/GROOVY_5_0_X (775166b752)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/groovy/contracts/spock/SpockIntegrationTests.groovy    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


(groovy) 01/01: `org.spockframework:spock-core:2.4-M7-groovy-5.0`

Posted by em...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

emilles pushed a commit to branch GROOVY_5_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 775166b752c67476cf85594f60738fe621da004e
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Wed Nov 26 10:53:22 2025 -0600

    `org.spockframework:spock-core:2.4-M7-groovy-5.0`
---
 build-logic/src/main/groovy/org.apache.groovy-base.gradle      |  4 ----
 gradle/verification-metadata.xml                               | 10 ----------
 .../groovy/transform/traitx/TraitASTTransformationTest.groovy  |  3 +--
 .../apache/groovy/contracts/spock/SpockIntegrationTests.groovy |  4 +---
 versions.properties                                            |  3 +--
 5 files changed, 3 insertions(+), 21 deletions(-)

diff --git a/build-logic/src/main/groovy/org.apache.groovy-base.gradle b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
index a07154929c..39b5cf938d 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
@@ -226,10 +226,6 @@ tasks.withType(Javadoc).configureEach {
     options.source = sharedConfiguration.targetJavaVersion.get()
 }
 
-tasks.named('compileTestGroovy') {
-    options.forkOptions.jvmArgs += ['-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true']
-}
-
 tasks.withType(CodeNarc).configureEach {
     ignoreFailures = true
     configFile = rootProject.file('config/codenarc/codenarc.groovy')
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index 2bf893544f..960579e6ea 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -1905,16 +1905,6 @@
             <sha512 value="5b947edcb05a1c17648ec9fe53dd2c66b4a86dd2b950d989255f6edd636fd5d50d18b8f31b3a1736dadd9cff6790a3d0355f2ed896c3eb7f72e009199fe9957d" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
          </artifact>
       </component>
-      <component group="org.spockframework" name="spock-core" version="2.3-groovy-4.0">
-         <artifact name="spock-core-2.3-groovy-4.0.jar">
-            <sha512 value="67a718b2da6fdc3f64e65e68fa789047b3fe7eb66147b4865e311e4bdf68f821dd6c290261f1db9d9ab0ee3505853bfe5772b94c6c2ca364896c6fc6cc92cedb" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
-         </artifact>
-      </component>
-      <component group="org.spockframework" name="spock-junit4" version="2.3-groovy-4.0">
-         <artifact name="spock-junit4-2.3-groovy-4.0.jar">
-            <sha512 value="ab14c5254653e7be75d6e52ef64122242766d005b42c5d8b4366b1a8557fca9e1629c79f66bf5cfc6031904c756cf84ec04ba5bcf0593ec69a58a3f2ab5a3dde" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
-         </artifact>
-      </component>
       <component group="org.testng" name="testng" version="7.11.0">
          <artifact name="testng-7.11.0.jar">
             <pgp value="C4F54D8622C95CC3F098721A0F13D5631D6AF36D"/>
diff --git a/src/test/groovy/org/codehaus/groovy/transform/traitx/TraitASTTransformationTest.groovy b/src/test/groovy/org/codehaus/groovy/transform/traitx/TraitASTTransformationTest.groovy
index 194d8fbf22..a57485deea 100644
--- a/src/test/groovy/org/codehaus/groovy/transform/traitx/TraitASTTransformationTest.groovy
+++ b/src/test/groovy/org/codehaus/groovy/transform/traitx/TraitASTTransformationTest.groovy
@@ -3328,9 +3328,8 @@ final class TraitASTTransformationTest {
             assert td == 'm(java.lang.Class,[java.lang.Object):java.lang.Object'
         """
 
-        System.setProperty('spock.iKnowWhatImDoing.disableGroovyVersionCheck','true')
         assertScript shell, """
-            @Grab('org.spockframework:spock-core:2.4-M6-groovy-4.0')
+            @Grab('org.spockframework:spock-core:2.4-M7-groovy-5.0')
             @GrabExclude('org.apache.groovy:*')
             import spock.lang.Specification
 
diff --git a/subprojects/groovy-contracts/src/test/groovy/org/apache/groovy/contracts/spock/SpockIntegrationTests.groovy b/subprojects/groovy-contracts/src/test/groovy/org/apache/groovy/contracts/spock/SpockIntegrationTests.groovy
index e56e3dc6c6..47b376cc57 100644
--- a/subprojects/groovy-contracts/src/test/groovy/org/apache/groovy/contracts/spock/SpockIntegrationTests.groovy
+++ b/subprojects/groovy-contracts/src/test/groovy/org/apache/groovy/contracts/spock/SpockIntegrationTests.groovy
@@ -18,17 +18,15 @@
  */
 package org.apache.groovy.contracts.spock
 
-import spock.lang.Specification
 import groovy.contracts.Requires
 import org.apache.groovy.contracts.PreconditionViolation
 
-final class ContractsSpec extends Specification {
+final class ContractsSpec extends spock.lang.Specification {
 
     @Requires({ dir && file && path })
     private contractedMethod(String dir, String file, String path) {
     }
 
-    @spock.lang.Ignore // until Spock fixes thrown
     def "contracted method with precondition violation"(String dir, String file, String path) {
       when:
         contractedMethod(dir, file, path)
diff --git a/versions.properties b/versions.properties
index e8e6c2d25f..7210a3a654 100644
--- a/versions.properties
+++ b/versions.properties
@@ -52,8 +52,7 @@ openbeans=1.0.2
 picocli=4.7.7
 qdox=2.2.0
 slf4j=2.0.17
-# running with Groovy 5 can be allowed with -Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true
-spock=2.3-groovy-4.0
+spock=2.4-M7-groovy-5.0
 spotbugs=4.9.8
 treelayout=1.0.3
 xmlunit=1.6