Skip to content

Configuring ml gradle

rjrudin edited this page Dec 23, 2015 · 16 revisions

ml-gradle is configured via two ways:

  1. Properties in gradle.properties
  2. Scripting in build.gradle

Of course, all of the files under src/main/ml-config can be considered configuration as well, but those are configuration files sent to MarkLogic. This page discusses how to modify how ml-gradle works, not what payloads it sends to MarkLogic - configuring the latter is simply a matter of adding and modifying configuration files under src/main/ml-config.

Properties

The example projects in this repository show the different properties you can set in gradle.properties. For a complete list though, take a look at the factory class in ml-app-deployer that reads properties from a property source object (the PropertySource interface exists to hide where the properties come from - in ml-gradle, they come from the Gradle Project class, whereas in other environments, using system properties or a java.util.Properties may be desired).

Scripting

TODO

Clone this wiki locally