-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Polish code in preparation for a Groovy upgrade #9627
Conversation
subprojects/launcher/src/test/groovy/org/gradle/launcher/MainTest.groovy
Show resolved
Hide resolved
subprojects/docs/src/samples/userguide/mavenMigration/basic/kotlin/build.gradle.kts
Outdated
Show resolved
Hide resolved
e396c06
to
83d9dcf
Compare
|
||
final inputFingerprinter = new AbsolutePathFileCollectionFingerprinter( | ||
new DefaultFileSystemSnapshotter( | ||
fileHasher, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trait references to other fields aren't atomic and see their values as null
May be a bug, opened: https://issues.apache.org/jira/browse/GROOVY-9167
83d9dcf
to
7f23609
Compare
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Show resolved
Hide resolved
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Show resolved
Hide resolved
858a231
to
1805e0d
Compare
...nt/src/test/groovy/org/gradle/api/internal/artifacts/transform/TransformationNodeSpec.groovy
Show resolved
Hide resolved
1805e0d
to
b37b04e
Compare
3661059
to
280f97e
Compare
@@ -30,8 +30,8 @@ class RebaselinePerformanceTests extends SourceTask { | |||
|
|||
@TaskAction | |||
void rebaseline() { | |||
getSource().each { file -> | |||
file.text = rebaseline(file.text, baseline) | |||
for (file in getSource()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
280f97e
to
f75fd41
Compare
...subprojects/performance/src/main/groovy/org/gradle/testing/RebaselinePerformanceTests.groovy
Outdated
Show resolved
Hide resolved
...ntegTest/groovy/org/gradle/java/compile/AbstractGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
...ntegTest/groovy/org/gradle/java/compile/AbstractGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
For some reason Groovy 2.5.7 is stricter WRT the order of declared mock expectations for this particular test. Changing the order to accurately reflect the true invocation order allows this test to pass with Groovy 2.5.4 and 2.5.7
…ed Groovy/Java avoidance suite
f75fd41
to
f7cef6b
Compare
Force pushed to remove invalid commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the indentation is not consistent, yet.
...ntegTest/groovy/org/gradle/java/compile/AbstractGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
...ntegTest/groovy/org/gradle/java/compile/AbstractGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Show resolved
Hide resolved
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Outdated
Show resolved
Hide resolved
…le/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy Co-Authored-By: Stefan Wolf <wolf@gradle.com>
A step towards #8681
This PR doesn't change the Groovy version anymore, it just fixes a few quirks that would fail with 2.5.7
See:
Groovy bugs reported: