Details
Description
Reproduction steps
- Check out https://github.com/gradle/gradle/tree/lptr/groovy-4-bugs
- Run ./gradlew :ivy:compileAll, it works using 4.0.0-beta-1!
- Change the Groovy version here to `4.0.0-beta-2`: https://github.com/gradle/gradle/blob/860e74522dcbf2df635a27f38fef1daa0b093322/build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt#L23
- Run ./gradlew :ivy:compileAll
It fails with:
:ivy:compileTestFixturesGroovy FAILED Groovy compilation avoidance is an incubating feature. Executing Spock 2.0.0-groovy-3.0 with NOT compatible Groovy version 4.0.0-beta-2 due to set spock.iKnowWhatImDoing.disableGroovyVersionCheck system property. This is unsupported and may result in weird runtime errors! startup failed: /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/ivy/src/testFixtures/groovy/org/gradle/api/publish/ivy/AbstractIvyPublishIntegTest.groovy: -1: The method 'void expectFiles(java.lang.String[])' has an incorrect modifier transient. @ line -1, column -1. 1 error
Build scan: https://ge.gradle.org/s/phu26h5udswba/console-log?task=:ivy:compileTestFixturesGroovy
Attachments
Issue Links
- is duplicated by
-
GROOVY-10513 Incorrect bytecode generated for default interface methods with array parameter
- Closed
- is related to
-
GROOVY-10140 No compiler error for invalid transient method modifier
- Closed
- relates to
-
GROOVY-10521 Compiler complains about abstract method not implemented when implementing trait
- Closed