-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix XmlSlurper deprecation #656
fix XmlSlurper deprecation #656
Conversation
|
@ben-manes do you mind rerunning the CI actions and merging? |
@DPUkyle Try syncing with the latest code and push back up. |
I think you'd need to add me as a collaborator on your fork: https://github.com/jaredsburrows/gradle-versions-plugin/settings/access |
@DPUkyle I did not see the "re-run failed" jobs, so I just synced it now. |
I understand the failure cause. Tests in Off the top of my head, I see two options:
WDYT? PS The table in gradle/gradle#17375 has a nice illustration of bundled Groovy and Kotlin versions. |
I am fine if we bump up the minimum version of Gradle. That seems preferable to reflection workarounds. |
@jaredsburrows please up the minimum version here. This patch will run
|
This is odd - your changes look good to me, but the checks fail running tests that have been removed from the class: https://scans.gradle.com/s/y2ohuqhdfmaf4/tests/overview?outcome=failed Updated: I think your fork is out-of-sync. I see the failing test still exists on |
I still see
|
Yeah, that's strange and also I think the GitHub Action is checking out the wrong git reference, hence the test still failing. |
@DPUkyle asked me to take a look at this failure based on my GitHub actions experience.
If this PR can be build locally, but is failing consistently on CI, then I suspect that there's some state in Gradle User Home that isn't being correctly invalidated. I don't really understand what state would cause this, but it could explain why this is a persistent failure on CI that isn't seen locally. (The There are a couple things that could fix this:
|
okay, merged #694. Please rebase and try again. |
Looks like an updated Gradle version didn't help. Next thing to try would be running the workflow with |
I think we are missing the removal of this line (https://github.com/ben-manes/gradle-versions-plugin/blob/master/gradle-versions-plugin/src/test/groovy/com/github/benmanes/gradle/versions/KotlinDslUsageSpec.groovy#L100) if the problem in the other test was the Gradle version. |
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.
Yank this line please:
@@ -97,7 +92,6 @@
when:
def result = GradleRunner.create()
- .withGradleVersion('5.6')
.withPluginClasspath()
.withProjectDir(testProjectDir.root)
.withArguments('dependencyUpdates')
groovy.util.XmlSlurper
->groovy.xml.XmlSlurper
groovy.util.slurpersupport.GPathResult
->groovy.xml.slurpersupport.GPathResult
groovy.util.slurpersupport.NodeChildren
->groovy.xml.slurpersupport.NodeChildren
groovy.xml.XmlParser
@ben-manes