Skip to content

Commit 625e3aa

Browse files
committed
Added example project that disables creating app servers
1 parent 22b8e29 commit 625e3aa

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build
2+
.gradle
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This project shows an example of modifying mlDeploy so that no REST API server is created by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
plugins {
2+
id "com.marklogic.ml-gradle" version "2.3.3"
3+
}
4+
5+
ext {
6+
/**
7+
* ml-gradle's Gradle plugin class - MarkLogicPlugin - populates the mlAppDeployer instance with a set of
8+
* commands. You are free to manipulate the list of commands as you see it. This is an example of removing
9+
* the command for deploying a REST API server, which will result in mlDeploy not creating a REST API server
10+
* by default.
11+
*/
12+
mlAppDeployer.getCommands().remove(mlAppDeployer.getCommand("DeployRestApiServersCommand"))
13+
14+
/**
15+
* If you don't want a default REST API server, odds are you don't want the other thing that mlDeploy will create
16+
* by default, which is a triggers database. There's not yet a Gradle property for this, so we have to manipulate the
17+
* mlAppConfig instance directly.
18+
*/
19+
mlAppConfig {
20+
createTriggersDatabase = false
21+
}
22+
}

0 commit comments

Comments
 (0)