-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionally enable Groovy 4 for testing #20038
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Was only used in IvySpecificComponentMetadataRulesIntegrationTest, and it introduced some weird behavior with Groovy 4.
The classes are not present anymore after upgrading to Spock 2.2-M1.
It doesn't compile after upgrading to Spock 2.2-M1 anymore.
11faaec
to
63ecde4
Compare
15 tasks
789e8a2
to
68efd53
Compare
See https://issues.apache.org/jira/browse/GROOVY-10290. This can be reverted when Groovy is upgraded to 4.0.1.
68efd53
to
2edf760
Compare
Note: this is currently blocked pending resolution of GROOVY-10772 |
Hm. When looking at performance regressions I remember that in some of our tests we've seen an increase in GC time. Could this be the reason, I wonder? |
hythloda
approved these changes
Dec 29, 2022
@bot-gradle test this |
I've triggered the following builds for you: |
big-guy
approved these changes
Jan 4, 2023
@bot-gradle test and merge |
I've triggered a build for you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a cleaned up version of #18552.
Building with
-DbundleGroovy4=true
on the CLI will use Groovy 4.0.7 libs. An additional Gradleception job is already in place to invoke this code path.If we choose to unconditionally upgrade to Groovy 4, we should revert this PR followed by setting the Groovy version value in
ExternalModulesExtension.kt
.Alternatively, we could modify this PR to test forward with Groovy 5. This would likely also need temporary inclusion of apache snapshot repositories; see #20972.
Preparation PRs
TODO
INVOKEDYNAMIC
is*()
getters are not supported forBoolean
properties anymore; see Warn on Boolean properties beginning in 8.x #22218INVOKEDYNAMIC
is the only way forwardgroovy.utils.XmlParser
IsolatedAntBuilderMemoryLeakIntegrationTest.CodeNarc does not fail with PermGen space error
failo.g.w.i.WorkerExecutorIntegrationTest#does not leak project state across multiple builds
, and OOME mostly happens with Java 8GROOVY-10466 Compilation error on Spock expectationGROOVY-10467 Compilation fails with method detected as transient4.0.1
GROOVY-10299 Groovy compiler generates invalid Java stubs4.0.0-beta-2
GROOVY-10290 Dynamic Groovy code in Gradle doesn't compile because of $getLookup() method is not static4.0.1
WorkerDaemonIntegrationTest
ConfigureRuntimeClasspathNormalizationIntegrationTest
CheckstylePluginToolchainsIntegrationTest
BuildEnvironmentIntegrationTest
AntBuilder
for the super-class of our ownAntBuilder
AbstractSourcesAndJavadocJarsIntegrationTest
org.apache.groovy
group ID for Groovy versions > 4 inGroovyParametersMetadataIntegrationTest
(and probably in many other places)