Skip to content

Commit 1b5ebed

Browse files
authored
Merge pull request #1687 from akshaysonvane/code-cleanup
Use DHF version
2 parents ff31558 + 6a944f1 commit 1b5ebed

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ package com.marklogic.gradle.task
2020
import org.apache.commons.io.FileUtils
2121
import org.gradle.testkit.runner.UnexpectedBuildSuccess
2222

23-
import java.nio.file.Paths
24-
2523
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
2624

2725
class HubUpdateTaskTest extends BaseTest {
@@ -36,9 +34,8 @@ class HubUpdateTaskTest extends BaseTest {
3634

3735
//if 4.0 project is upgraded, remove the backed up directories
3836
def setup() {
39-
//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()
37+
File hubConfigDir = hubConfig().hubProject.projectDir.resolve("src/main/hub-internal-config-" + hubConfig().getDHFVersion()).toFile()
38+
File mlConfigDir = hubConfig().hubProject.projectDir.resolve("src/main/ml-config-" + hubConfig().getDHFVersion()).toFile()
4239
if (hubConfigDir.exists() && mlConfigDir.exists()) {
4340
FileUtils.forceDelete(hubConfigDir)
4441
FileUtils.forceDelete(mlConfigDir)

0 commit comments

Comments
 (0)