Questions tagged [ml-gradle]

Gradle plugin for automating anything you can imagine with MarkLogic

github.com/marklogic/corb2https://github.com/marklogic-community/ml-gradle

What is ml-gradle?

ml-gradle is a Gradle plugin that supports a number of tasks pertaining to deploying an application to MarkLogic and interacting with other features of MarkLogic via a Gradle build file. The bulk of the functionality provided by ml-gradle is actually in ml-app-deployer - ml-gradle is just intended to be a thin wrapper around this library, exposing its functionality via Gradle tasks and properties.

Why use ml-gradle?

ml-gradle is a good fit for you and your team if:

  1. You're using MarkLogic 8
  2. You're using Gradle, or you're considering moving away from Ant/Maven/etc to Gradle to manage all of your build processes
  3. You'd like to use a build tool that can manage the dependencies and execution of MarkLogic tools such as the Java Client API, mlcp, corb, recordloader, xqsync
  4. You'd like to have a single all-purpose tool that allows you to define tasks to do anything you need to on your MarkLogic project, including tasks that have nothing to do with MarkLogic.

If you're currently using Ant or Maven and are wondering about Gradle, there are many comparisons of these tools on the Internet; I recommend making this shift. If you are using Ant, it's easy to invoke Ant tasks from Gradle. And if you can't move away from Maven, you can try this Maven plugin for invoking Gradle.

What are the main features of ml-gradle?

  1. Utilizes the new Management REST API in MarkLogic 8 to configure and deploy all aspects of an application.
  2. Can watch for new/modified modules and automatically load them for you, thus speeding up the code/build/test cycle
  3. Can run Content Pump, Corb, and other Java-based MarkLogic tools without having to copy jars around and worry about a classpath
  4. Can treat packages of MarkLogic code as true third-party dependencies, resolving them just like you would a dependency on a jar, as well as automatically loading such code into your modules database
  5. Can take advantage of all the features of Gradle

Related tags :

85 questions
1
vote
1 answer

how to create ssl template using ml-gradle?

How to configure gradle.properties for adding SSL templates config ? Also, I'd like to add SSL to the REST App Server. I have looked into https://github.com/marklogic-community/ml-gradle/wiki/Property-reference but couldn't find out from the README…
1
vote
1 answer

Fully disable REST endpoint creation in ml-gradle for MarkLogic

I have been working through building configuration files from a MarkLogic instance to deploy via ml-gradle. I would like to fully disable the REST endpoint at 8003. I'm using ml-gradle version 2.7.0. I was able to gather most of my configuration…
H. Garrow
  • 75
  • 4
1
vote
2 answers

Disabling/Pause database replication using ML-Gradle

I want to disable the Database Replication from the replica cluster in MarkLogic 8 using ML-Gradle. After updating the configurations, I also want to re-enable it. There are tasks for enabling and disabling flexrep in ML Gradle. But I couldn't found…
Ankit Bhardwaj
  • 754
  • 8
  • 27
0
votes
1 answer

ml-gradle NOT to create my-app-content database

How do I modify the ml-gradle project so that it will NOT create the default "my-app-content" database? Thanks in advance!
CJ Chang
  • 325
  • 4
  • 12
0
votes
0 answers

Add permissions for TDE templates using ml-gradle

We are using ml-gradle version 4.1.1 to deploy the XQuery code and data to app-modules database. Now ,we are trying to update the script to deploy TDE templates to app specific Schemas database. Project path used for templates :…
Antony
  • 183
  • 8
0
votes
1 answer

marklogic api exension post binary

I wanted to create a REST service in XQuery who are able to receive zip file with documents. I try to use the API REST extension, but the input is a document-node and is unable to receive zip file. Is there a way to do that? I have to receive a very…
0
votes
0 answers

Jenkins Job failed for 'mlDeployApp' task due to .svn folder

I am new to Jenkins and set up a job in free style project to fetch dhf project from a svn repository for each commit. I have used Jenkins svn post-commit hook as mentioned here - https://plugins.jenkins.io/subversion/ (Windows specific post-commit…
Ketan
  • 11
  • 1
0
votes
1 answer

ml-gradle creating unexpected extra forest in another group node

We are using ml-gradle v4.1.0 and ML v10.0-3 We have 2 groups A and B in the cluster. A has 6 nodes and B has 4 nodes. Despite using the property mlDatabasesWithForestsOnOneHost ml-gradle is creating an extra forest in B group (along with one forest…
Dixit Singla
  • 2,540
  • 3
  • 24
  • 39
0
votes
1 answer

How to pass parameter value to gradle mlExportToFile transform module

I am currently using mlExportToFile to export JSON documents to a single file. I would like to pass a parameter value from my shell script to the transform module. By default, the transform module function (as created by gradle mlCreateTransform…
Hank
  • 131
  • 4
0
votes
1 answer

ml-gradle local message error causing deployment to fail

I am trying to use ml-Gradle to deploy my application to a MarkLogic Server on an EC2 instance in AWS. I am getting the following error for any gradle command I run and I can't find any information about it on the web. Error: Error occurred while…
nobleb
  • 119
  • 1
  • 7
0
votes
1 answer

Gradle Build Failed With ml-gradle plugin install

I just installed Gradle via homebrew. Version 7.0. I ran a hello world task with no error. Then I followed the instructions for installing ml-gradle (https://github.com/marklogic-community/ml-gradle). I get Build Failed with: What went wrong: Some…
0
votes
1 answer

Is it possible to ignore certain modules or paths when deploying modules with ml-gradle?

We have two environments - two MarkLogic clusters - that are largely identical except we want to permit the POSTing of data to one environment (a pre-production environment) but not the other (production, which is public facing). We use ml-gradle…
kefo
  • 43
  • 4
0
votes
2 answers

use of different gradle commands

Here are a few commands of gradle that I came across: gradle mlDeploy gradle storeDeploy gradle dmfCompileRules gradle generateDMFInputSDM Can anyone explain the use of each of these tasks?
Aviator
  • 543
  • 1
  • 4
  • 10
0
votes
0 answers

Automate Running Marklogic Javascript files and code using ML-Gradle task

I am trying to automate running Datafix scripts using ml-gradle task. Myscripts sits in Directory like c:/data/scripts/Release_123. Release_123 can also have sub directories and each sub directory will have data fix scripts(SJS file) that needed to…
0
votes
1 answer

roxy conversion to ml-gradle properties error

Trying to convert an existing roxy project to ml-gradle using the ml-gradle plugin. Here's the build.gradle: plugins { id "net.saliman.properties" version "1.5.1" id "com.marklogic.ml-gradle" version "3.1.0" } This generates following…
Praveen Ray
  • 83
  • 1
  • 8