File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
examples/no-appservers-project Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ /build
2+ .gradle
Original file line number Diff line number Diff line change 1+ This project shows an example of modifying mlDeploy so that no REST API server is created by default.
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments