settings.gradle: prevent printing "Gradle Gradle"

This commit is contained in:
Andreas Schildbach 2024-08-29 17:18:01 +02:00
parent a8d4bbc6c7
commit 30761fa02f
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import org.gradle.util.GradleVersion
def gradleVersion = GradleVersion.version("4.4.1")
if (GradleVersion.current().compareTo(gradleVersion) != 0) {
throw new GradleScriptException("bitcoinj build requires Debian Gradle ${gradleVersion}", null)
throw new GradleScriptException("bitcoinj build requires Debian Gradle ${gradleVersion.version}", null)
}
// we can't test for Java 17 in Gradle 4.4, so at least we test for Java 11

View File

@ -11,7 +11,7 @@ def minGradleVersion = GradleVersion.version("7.3")
rootProject.name = 'bitcoinj-parent'
if (GradleVersion.current().compareTo(minGradleVersion) < 0) {
throw new GradleScriptException("bitcoinj build requires Gradle ${minGradleVersion} or later", null)
throw new GradleScriptException("bitcoinj build requires Gradle ${minGradleVersion.version} or later", null)
}
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
throw new GradleScriptException("bitcoinj build requires Java 17 or later", null)