Create Project Using Gradle
Before you begin
You need:
- Java SE JDK 8 or later
- MarkLogic Server (See Version Compatibility.)
- Gradle 4.6 or later
Procedure
Results
An example result:
##############################
# Your Data Hub Project is ready.
##############################
- Set username and password
There are several ways to do this. The easiest is to set mlUsername and mlPassword in gradle.properties.
For other approaches see: https://github.com/marklogic/marklogic-data-hub/wiki/Password-Management
- To deploy your application into MarkLogic...
gradle mlDeploy # this will bootstrap your application
gradle mlLoadModules # this will load your custom plugins into MarkLogic
- Full list of gradle tasks:
https://github.com/marklogic/marklogic-data-hub/wiki/Gradle-Tasks
- Curious about the project structure?
Look here: https://github.com/marklogic/marklogic-data-hub/wiki/Project-Directory-Structure
BUILD SUCCESSFUL
Total time: 1.932 secs
What to do next
Specify the username and password for the Data Hub plugin to use when communicating with MarkLogic Server. See Set the Security Credentials Using Gradle.