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

He-Pin pushed a commit to branch feature/junit6-migration
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git

commit ec32347f82fe2557f37eb13e4a3303c72d53a9bd
Author: 虎鸣 <[email protected]>
AuthorDate: Sat Jun 27 11:43:54 2026 +0800

    fix: pin Gradle plugin tests to JUnit Jupiter 5.14.1 for Spock 2.4 
compatibility
    
    Motivation:
    Spock 2.4-groovy-3.0 imports junit-bom:5.14.1 (JUnit Platform 1.14.1)
    and is not compatible with JUnit Platform 6.x that ships with
    junit-jupiter:6.1.0. This caused the Gradle plugin test task to fail
    in CI because the JUnit Platform engine could not initialize.
    
    Modification:
    Pin the Gradle plugin test dependency to junit-jupiter:5.14.1 instead
    of 6.1.0. The Gradle plugin tests use Spock/Groovy and do not need
    JUnit 6; only the main project tests require JUnit 6.
    
    Result:
    Gradle plugin tests pass with JUnit 5.14.1, compatible with Spock 2.4.
    
    Tests:
    Gradle tests now use JUnit Platform 1.14.1 which matches Spock 2.4's BOM.
    
    References:
    Refs #758, https://github.com/spockframework/spock/issues/2231
---
 gradle-plugin/build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle
index 211fb997..8851ed5d 100644
--- a/gradle-plugin/build.gradle
+++ b/gradle-plugin/build.gradle
@@ -132,7 +132,7 @@ repositories {
 dependencies {
   implementation 'com.google.protobuf:protobuf-gradle-plugin:0.9.5'
   implementation 'org.apache.commons:commons-lang3:3.19.0'
-  testImplementation 'org.junit.jupiter:junit-jupiter:6.1.0'
+  testImplementation 'org.junit.jupiter:junit-jupiter:5.14.1'
   testImplementation 'org.spockframework:spock-core:2.4-groovy-3.0'
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to