Skip to content

Commit

Permalink
settings.gradle: Replace invocation of compareTo() with operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schildbach committed Oct 27, 2019
1 parent e708ec4 commit edc7364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.gradle.api.GradleScriptException
// required Gradle version
def minGradleVersion = GradleVersion.version("4.4")

if (GradleVersion.current().compareTo(minGradleVersion) < 0)
if (GradleVersion.current() < minGradleVersion)
throw new GradleScriptException("build requires Gradle ${minGradleVersion} or later", null)

include 'wallet'
Expand Down

0 comments on commit edc7364

Please sign in to comment.