Closed losmurfs closed 1 year ago
I believe that is a Gradle version issue due to their Groovy upgrade. In Gradle 7.x+ you can use v43 or above, else an older version. For some reason our tests don't fail even though we run against Gradle 5.0. The older version of the plugin uses groovy.util.XmlSlurper
which Groovy deprecated and removed.
I believe that is a Gradle version issue due to their Groovy upgrade. In Gradle 7.x+ you can use v43 or above, else an older version. For some reason our tests don't fail even though we run against Gradle 5.0. The older version of the plugin uses
groovy.util.XmlSlurper
which Groovy deprecated and removed.
So what is my solution?
If you are on Gradle 6.x or below, use the plugin version v42. The plugin releases are primarily compatibility fixes with Gradle's changes, so you shouldn't have a problem with an older version. Once you are on Gradle 7.x+ then you can switch to the latest release.
stacktrace.txt
Get groovy/xml/XmlSlurper error when I execute the following in my gradle project:
gradle dependencyUpdates
Tried adding groovy like this: ~/.gradle/init.d/add-versions-plugin.gradle