diff --git a/rewrite-gradle/src/test/java/org/openrewrite/gradle/UpgradeDependencyVersionTest.java b/rewrite-gradle/src/test/java/org/openrewrite/gradle/UpgradeDependencyVersionTest.java index 1d190651c92..ae6792549d7 100644 --- a/rewrite-gradle/src/test/java/org/openrewrite/gradle/UpgradeDependencyVersionTest.java +++ b/rewrite-gradle/src/test/java/org/openrewrite/gradle/UpgradeDependencyVersionTest.java @@ -55,9 +55,7 @@ void guava() { dependencies { compileOnly 'com.google.guava:guava:29.0-jre' - runtimeOnly ('com.google.guava:guava:29.0-jre') { - force = true - } + runtimeOnly ('com.google.guava:guava:29.0-jre') } """, """ @@ -71,9 +69,7 @@ void guava() { dependencies { compileOnly 'com.google.guava:guava:30.1.1-jre' - runtimeOnly ('com.google.guava:guava:30.1.1-jre') { - force = true - } + runtimeOnly ('com.google.guava:guava:30.1.1-jre') } """, spec -> spec.afterRecipe(after -> { @@ -115,9 +111,7 @@ void updateVersionInVariable() { } dependencies { - implementation ("com.google.guava:guava:$guavaVersion") { - force = true - } + implementation ("com.google.guava:guava:$guavaVersion") implementation "com.fasterxml.jackson.core:jackson-databind:$otherVersion" } """, @@ -133,9 +127,7 @@ void updateVersionInVariable() { } dependencies { - implementation ("com.google.guava:guava:$guavaVersion") { - force = true - } + implementation ("com.google.guava:guava:$guavaVersion") implementation "com.fasterxml.jackson.core:jackson-databind:$otherVersion" } """ @@ -230,9 +222,7 @@ void mapNotationLiteral() { } dependencies { - implementation (group: "com.google.guava", name: "guava", version: '29.0-jre') { - force = true - } + implementation (group: "com.google.guava", name: "guava", version: '29.0-jre') } """, """ @@ -245,9 +235,7 @@ void mapNotationLiteral() { } dependencies { - implementation (group: "com.google.guava", name: "guava", version: '30.1.1-jre') { - force = true - } + implementation (group: "com.google.guava", name: "guava", version: '30.1.1-jre') } """ )