|
1 | 1 | package com.marklogic.gradle |
2 | 2 |
|
| 3 | +import com.marklogic.appdeployer.command.forests.DeployCustomForestsCommand |
| 4 | +import com.marklogic.gradle.task.forests.DeployCustomForestsTask |
3 | 5 | import org.gradle.api.Plugin |
4 | 6 | import org.gradle.api.Project |
5 | 7 | import org.slf4j.LoggerFactory |
@@ -181,7 +183,8 @@ class MarkLogicPlugin implements Plugin<Project> { |
181 | 183 |
|
182 | 184 | String forestGroup = "ml-gradle Forest" |
183 | 185 | project.task("mlConfigureForestReplicas", type: ConfigureForestReplicasTask, group: forestGroup, description: "Deprecated - configure forest replicas via the command.forestNamesAndReplicaCounts map") |
184 | | - project.task("mlDeleteForestReplicas", type: DeleteForestReplicasTask, group: forestGroup, description: "Delete forest replicas via the command.forestNamesAndReplicaCounts map") |
| 186 | + project.task("mlDeleteForestReplicas", type: DeleteForestReplicasTask, group: forestGroup, description: "Deprecated - delete forest replicas via the command.forestNamesAndReplicaCounts map") |
| 187 | + project.task("mlDeployCustomForests", type: DeployCustomForestsTask, group: forestGroup, description: "Deploy custom forests as defined in subdirectories of the forests configuration directory") |
185 | 188 | project.task("mlDeployForestReplicas", type: DeployForestReplicasTask, group: forestGroup, description: "Prefer this over mlConfigureForestReplicas; it does the same thing, but uses the ConfigureForestReplicasCommand that is used by mlDeploy") |
186 | 189 |
|
187 | 190 | String groupsGroup = "ml-gradle Group" |
@@ -384,6 +387,12 @@ class MarkLogicPlugin implements Plugin<Project> { |
384 | 387 | project.extensions.add("mlMimetypeCommands", mimetypeCommands) |
385 | 388 | commands.addAll(mimetypeCommands) |
386 | 389 |
|
| 390 | + // Forests |
| 391 | + List<Command> forestCommands = new ArrayList<Command>() |
| 392 | + forestCommands.add(new DeployCustomForestsCommand()) |
| 393 | + project.extensions.add("mlForestCommands", forestCommands) |
| 394 | + commands.addAll(forestCommands) |
| 395 | + |
387 | 396 | // Forest replicas |
388 | 397 | List<Command> replicaCommands = new ArrayList<Command>() |
389 | 398 | replicaCommands.add(new ConfigureForestReplicasCommand()) |
|
0 commit comments