Skip to content

Commit a44317a

Browse files
authored
Merge pull request #1679 from akshaysonvane/nexus-version-change
Updated version to make it compatible with internal Nexus
2 parents bdefa3a + 4a7b0a9 commit a44317a

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=4.0.SNAPSHOT
2-
publishUrl=file:../marklogic-data-hub/releases
1+
version=4.0-SNAPSHOT
2+
publishUrl=file:../marklogic-data-hub/releases

marklogic-data-hub/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
mlDHFVersion=4.0.SNAPSHOT
15+
mlDHFVersion=4.0-SNAPSHOT
1616
mlHost=localhost
1717
mlAppName=data-hub
1818

marklogic-data-hub/src/main/java/com/marklogic/hub/impl/HubConfigImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ public DatabaseClient newModulesDbClient() {
15961596

15971597
// this lets debug builds work from an IDE
15981598
if (version.equals("${project.version}")) {
1599-
version = "4.0.SNAPSHOT";
1599+
version = "4.0-SNAPSHOT";
16001600
}
16011601
return version;
16021602
}

marklogic-data-hub/src/main/resources/scaffolding/build_gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919

2020
// This gradle plugin extends the ml-gradle plugin with
2121
// commands that make the Data Hub Framework do its magic
22-
id 'com.marklogic.ml-data-hub' version '4.0.SNAPSHOT'
22+
id 'com.marklogic.ml-data-hub' version '4.0-SNAPSHOT'
2323
}
2424

2525
repositories {
@@ -30,7 +30,7 @@ repositories {
3030
dependencies {
3131
// this allows you to write custom java code that depends
3232
// on the Data Hub Framework library
33-
compile 'com.marklogic:marklogic-data-hub:4.0.SNAPSHOT'
33+
compile 'com.marklogic:marklogic-data-hub:4.0-SNAPSHOT'
3434
compile 'com.marklogic:marklogic-xcc:9.0.7'
3535
}
3636

ml-data-hub-plugin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
mlDHFVersion=4.0.SNAPSHOT
15+
mlDHFVersion=4.0-SNAPSHOT
1616
mlHost=localhost
1717
mlAppName=data-hub
1818

ml-data-hub-plugin/src/test/groovy/com/marklogic/gradle/task/HubUpdateTaskTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class HubUpdateTaskTest extends BaseTest {
3737
//if 4.0 project is upgraded, remove the backed up directories
3838
def setup() {
3939
//hardcoding to 4.0
40-
File hubConfigDir = hubConfig().hubProject.projectDir.resolve("src/main/hub-internal-config-4.0.SNAPSHOT").toFile()
41-
File mlConfigDir = hubConfig().hubProject.projectDir.resolve("src/main/ml-config-4.0.SNAPSHOT").toFile()
40+
File hubConfigDir = hubConfig().hubProject.projectDir.resolve("src/main/hub-internal-config-4.0-SNAPSHOT").toFile()
41+
File mlConfigDir = hubConfig().hubProject.projectDir.resolve("src/main/ml-config-4.0-SNAPSHOT").toFile()
4242
if (hubConfigDir.exists() && mlConfigDir.exists()) {
4343
FileUtils.forceDelete(hubConfigDir)
4444
FileUtils.forceDelete(mlConfigDir)

quick-start/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
# What version of DHF am I intending on targetting? Make sure you use the full SemVer x.x.x
16-
mlDHFVersion=4.0.SNAPSHOT
16+
mlDHFVersion=4.0-SNAPSHOT
1717

1818
mlHost=localhost
1919
mlAppName=data-hub

quick-start/src/main/java/com/marklogic/quickstart/service/EnvironmentConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public void checkIfInstalled() {
9999
this.runningVersion = this.mlSettings.getJarVersion();
100100
this.DHFVersion = versions.getDHFVersion();
101101

102-
// Replace "SNAPSHOT" in version with 0 as QS compares versions and fails if version number contains text
103-
installedVersion = installedVersion.replace("SNAPSHOT", "0");
104-
runningVersion = runningVersion.replace("SNAPSHOT", "0");
105-
DHFVersion = DHFVersion.replace("SNAPSHOT", "0");
102+
// Replace "-SNAPSHOT" in version with ".0" as QS compares versions and fails if version number contains text
103+
installedVersion = installedVersion.replace("-SNAPSHOT", ".0");
104+
runningVersion = runningVersion.replace("-SNAPSHOT", ".0");
105+
DHFVersion = DHFVersion.replace("-SNAPSHOT", ".0");
106106
}
107107

108108
private DatabaseClient _stagingClient = null;

0 commit comments

Comments
 (0)