Skip to content

Commit

Permalink
corrected mandatory base gradle version property checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Zhdanov committed Oct 28, 2023
1 parent e7636ce commit d8708d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CustomGradleDistributionPlugin : Plugin<Project> {
}

private fun validateGradleVersion(extension: CustomGradleDistExtension) {
if (!extension.gradleVersion.isPresent && extension.gradleVersion.get().isBlank()) {
if (!extension.gradleVersion.isPresent || extension.gradleVersion.get().isBlank()) {
throw IllegalStateException(
"""
can not build custom gradle distribution - base gradle version is undefined. Please specify it like below:
Expand Down

0 comments on commit d8708d6

Please sign in to comment.