Skip to content

Commit 00bf194

Browse files
author
Rob Rudin
committed
#198 Only try to set mlTestRestPort if mlRestPort has been set
1 parent 1a3bd4a commit 00bf194

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ pluginBundle {
8787
displayName = 'ml-gradle for MarkLogic'
8888
description = 'Gradle plugin for configuring and deploying applications to MarkLogic'
8989
tags = ['marklogic']
90-
version = "2.7.2"
90+
version = "2.7.3"
9191
}
9292
}
9393

9494
mavenCoordinates {
95-
version = "2.7.2"
95+
version = "2.7.3"
9696
}
9797
}

examples/minimal-project/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
*/
88

99
plugins {
10-
id "com.marklogic.ml-gradle" version "2.7.2"
10+
id "com.marklogic.ml-gradle" version "2.7.3"
1111
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=com.marklogic
2-
version=2.7.2
2+
version=2.7.3
33
mlAppDeployerDependency=com.marklogic:ml-app-deployer:2.7.0
44
mlcpUtilDependency=com.marklogic:mlcp-util:0.3.0
55

src/main/groovy/com/marklogic/gradle/task/NewProjectTask.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class NewProjectTask extends MarkLogicTask {
4242
if (ant.mlPropertiesPlugin == "y") {
4343
def text = 'plugins {' +
4444
'\n id "net.saliman.properties" version "1.4.6"' +
45-
'\n id "com.marklogic.ml-gradle" version "2.7.2"' +
45+
'\n id "com.marklogic.ml-gradle" version "2.7.3"' +
4646
'\n}'
4747
println "Updating build.gradle so that the Gradle properties plugin can be applied"
4848
writeFile("build.gradle", text)
@@ -70,9 +70,9 @@ class NewProjectTask extends MarkLogicTask {
7070
appConfig.setRestAdminPassword(ant.mlPassword)
7171
if (ant.mlRestPort) {
7272
appConfig.setRestPort(Integer.parseInt(ant.mlRestPort))
73-
}
74-
if (ant.mlTestRestPort) {
75-
appConfig.setTestRestPort(Integer.parseInt(ant.mlTestRestPort))
73+
if (ant.mlTestRestPort) {
74+
appConfig.setTestRestPort(Integer.parseInt(ant.mlTestRestPort))
75+
}
7676
}
7777
new ScaffoldGenerator().generateScaffold(".", appConfig)
7878
}

0 commit comments

Comments
 (0)