Skip to content

Commit 923b14c

Browse files
akshaysonvaneaebadirad
authored andcommitted
Run hubDeployUserArtifacts cmd after mlReloadSchemas to re-generate TDE (#1880)
1 parent 2b18b2a commit 923b14c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ class DataHubPlugin implements Plugin<Project> {
110110
project.tasks.replace("mlClearModulesDatabase", ClearDHFModulesTask)
111111
project.tasks.mlClearModulesDatabase.getDependsOn().add("mlDeleteModuleTimestampsFile")
112112

113+
/*
114+
DHF has triggers that generate TDE and entity file in the schemas database so finalizing by
115+
"hubDeployUserArtifacts" which will refresh these files after "mlReloadSchemas" clears them.
116+
*/
117+
project.tasks.mlReloadSchemas.finalizedBy(["hubDeployUserArtifacts"])
118+
113119
project.task("hubInstallModules", group: deployGroup, type: DeployHubModulesTask,
114120
description: "Installs DHF internal modules. Requires hub-admin-role or equivalent.")
115121
.mustRunAfter(["mlClearModulesDatabase"])

0 commit comments

Comments
 (0)