Skip to content

Commit 5ee571a

Browse files
committed
fixing broken version compare
1 parent f9b48d5 commit 5ee571a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ml-data-hub-plugin/src/main/groovy/com/marklogic/gradle/DataHubPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DataHubPlugin implements Plugin<Project> {
1818

1919
@Override
2020
void apply(Project project) {
21-
if (Double.parseDouble(project.gradle.gradleVersion) < 3.1) {
21+
if (DataHub.versionCompare(project.gradle.gradleVersion, "3.1") == -1) {
2222
logger.error("\n\n" +
2323
"********************************\n" +
2424
"Hold the phone!\n\n" +

0 commit comments

Comments
 (0)