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
0
votes
1 answer

How to Set "audit-enabled":false in MarkLogic at the time of deployment

How can I set "audit-enabled":false in MarkLogic at the time of deployment in the groups.json file?
0
votes
1 answer

mlDeploy task throwing error with gradle v3.16.4

On upgrading to ml-gradle v3.16.4 I am getting the below error while running the mlDeploy task. MANAGE-INVALIDPAYLOAD: (err:FOER0000) Payload has errors in structure, content-type or values. Invalid payload: no such database:…
Dixit Singla
  • 2,540
  • 3
  • 24
  • 39
0
votes
1 answer

MarkLogic ml-gradle configuration to set `assignment policy` for database?

As in Marklogic version 10.0-2.1 the default assignment policy for a new database is segment. I want to set it to bucket(same as used in old ML versions), so what is the ml-gradle configuration (parameter and value) for the same?
Dixit Singla
  • 2,540
  • 3
  • 24
  • 39
0
votes
0 answers

How to update database backup schedule settings with ml-gradle?

I am trying to change scheduled MarkLogic database backup settings with ml-gradle. I am able to deploy a database with gradle mlDeploy. But when changing it's scheduled backup properties I get a "database configurations differ" error while running…
leitmedium
  • 23
  • 5
0
votes
2 answers

How to change Root path of HTTP server of marklogic project using mlgradle?

I need to change the root path of Appserver in marklogic using mlgradle. Can I know how to do it? Is there any way to do such changes using mlgradle?
Teja sai
  • 1
  • 1
0
votes
0 answers

Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: The handle is invalid

I'm running gradle (v. 5.2.1) deployment of Marklogic (ml-gradle plugin) via Octopus deploy app. Tentacle runs as Local System. I'm running it through .net application runner which spawns gradle command. On my dev environment it works fine, but on…
Kamil Budziewski
  • 22,699
  • 14
  • 85
  • 105
0
votes
0 answers

restrict specific task when we run mlUndeploy in gradle

How to restrict specific task to execute while running default task such as mlUndeploy or mlDeploy through gradle I want to restrict below Task while running mlUn: project.task("mlUndeployPrivileges", type: UndeployPrivilegesTask, group:…
mpuram
  • 149
  • 9
0
votes
1 answer

MarkLogic - Deploy tasks using gradle

MarkLogic : 9.0-6.2 Data Hub Version : 2.0.6 I created a task to monitor backups and placed the file at \src\main\ml-config\tasks\taskmonitor.json I did a deploy (gradle mlDeploy), but how can I verify if the task has been created successfully? I…
Bhanu
  • 427
  • 2
  • 8
0
votes
0 answers

DHF and CPF/Alert configuration

I am using DHF and I have a usecase where I need to configure alerts for my final db. I am configuring via gradle both the cpf which is required by alerts and alerts. In my configuration, how can I tell that a given cpf is enabled only for my final…
Ravi
  • 1,179
  • 6
  • 13
0
votes
2 answers

Looking to add post modules deploy calling a java class in ml-gradle and roxy

I have a java class that I want to call on post deployment of modules for MarkLogic in both ml-gradle and roxy. Are there any examples for either of these out there?
Loren Cahlander
  • 1,257
  • 1
  • 10
  • 24
1 2 3 4 5
6