diff --git a/.gitattributes b/.gitattributes index a8f64e219bcd..a7e789158511 100644 --- a/.gitattributes +++ b/.gitattributes @@ -53,4 +53,3 @@ *.war binary *.ear binary *.rar binary -**/gradle-8.10-bin.zip filter=lfs diff=lfs merge=lfs -text diff --git a/rewrite-gradle/src/main/java/org/openrewrite/gradle/UpdateGradleWrapper.java b/rewrite-gradle/src/main/java/org/openrewrite/gradle/UpdateGradleWrapper.java index aae50cac6fc4..2d6289e83ca8 100755 --- a/rewrite-gradle/src/main/java/org/openrewrite/gradle/UpdateGradleWrapper.java +++ b/rewrite-gradle/src/main/java/org/openrewrite/gradle/UpdateGradleWrapper.java @@ -135,8 +135,8 @@ private GradleWrapper getGradleWrapper(ExecutionContext ctx) { return gradleWrapper = new GradleWrapper(version, new DistributionInfos(null, null, null)); } else { throw new IllegalArgumentException( - "Could not reach services.gradle.org and no alternative wrapper URI is provided. " + - "To use this recipe in environments where services.gradle.org is unavailable specify a wrapperUri.", e); + "Could not reach services.gradle.org, no alternative wrapper URI is provided and no exact version is provided. " + + "To use this recipe in environments where services.gradle.org is unavailable specify a wrapperUri or exact version.", e); } } if (wrapperUri.contains("${version})")) { diff --git a/rewrite-gradle/src/test/resources/gradle-8.10-bin.zip b/rewrite-gradle/src/test/resources/gradle-8.10-bin.zip index e8ac15c530f0..b16e42111b8f 100644 Binary files a/rewrite-gradle/src/test/resources/gradle-8.10-bin.zip and b/rewrite-gradle/src/test/resources/gradle-8.10-bin.zip differ