Skip to content

Commit

Permalink
fix XmlSlurper deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsburrows committed Sep 15, 2022
1 parent 6718ffd commit 0e5660e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.benmanes.gradle.versions.updates

import com.github.benmanes.gradle.versions.updates.resolutionstrategy.ResolutionStrategyWithCurrent
import groovy.util.XmlSlurper
import groovy.util.slurpersupport.GPathResult
import groovy.util.slurpersupport.NodeChildren
import groovy.xml.XmlSlurper
import groovy.xml.slurpersupport.GPathResult
import groovy.xml.slurpersupport.NodeChildren
import org.codehaus.groovy.runtime.DefaultGroovyMethods.asBoolean
import org.codehaus.groovy.runtime.DefaultGroovyMethods.getMetaClass
import org.gradle.api.Action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class KotlinDslUsageSpec extends Specification {
}

@Unroll
def "user friendly kotlin-dsl with"() {
def "user friendly kotlin-dsl"() {
given:
buildFile << '''
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.github.benmanes.gradle.versions
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

import groovy.json.JsonSlurper
import groovy.xml.XmlParser
import org.gradle.testkit.runner.GradleRunner
import org.junit.Rule
import org.junit.rules.TemporaryFolder
Expand Down

0 comments on commit 0e5660e

Please sign in to comment.