1111 * (possibly outdated) set of CoRB options will be applied to the CorbTask.
1212 */
1313buildscript {
14- repositories {
15- mavenCentral()
16- }
17- dependencies {
18- // Needed for CorbTask to dynamically generate properties from CORB Options class
19- classpath " com.marklogic:marklogic-corb:${ corbVersion} "
20- }
14+ repositories {
15+ mavenCentral()
16+ }
17+ dependencies {
18+ // Needed for CorbTask to dynamically generate properties from CoRB Options class
19+ classpath " com.marklogic:marklogic-corb:${ corbVersion} "
20+ }
2121}
2222
2323plugins {
2424 id " com.marklogic.ml-gradle" version " 4.1.0"
2525}
2626
2727repositories {
28- mavenCentral()
28+ mavenCentral()
2929}
3030
3131configurations {
32- // This configuration captures the dependencies for running corb (Content Reprocessing in Bulk).
32+ // This configuration captures the dependencies for running CoRB (Content Reprocessing in Bulk).
3333 // This is only needed if you want to run corb via Gradle tasks.
3434 // If you do, using com.marklogic.gradle.task.CorbTask is a useful starting point, as shown below.
35- corb
35+ corb {
36+ attributes {
37+ attribute(Usage . USAGE_ATTRIBUTE , objects. named(Usage , Usage . JAVA_RUNTIME ))
38+ }
39+ }
3640}
3741
3842dependencies {
3943 // required to run CoRB2
4044 corb " com.marklogic:marklogic-corb:${ corbVersion} "
45+ corb ' com.marklogic:marklogic-xcc:10.0.8'
4146 // optional
4247 // corb 'org.jasypt:jasypt:1.9.2' // would be necessary to leverage JasyptDecrypter
4348}
@@ -73,11 +78,11 @@ ext {
7378 */
7479task corb (type : com.marklogic.gradle.task.CorbTask ) {
7580 /* Either uncomment and set the xccConnectionUri below and set an appropriate XCC connection string,
76- * or specify on the commandline as a project property: -PcorbXccConnectionUri=xcc://user:pass@host:port/content-database
77- * or specify as a System property: -DXCC-CONNECTION-URI=xcc://user:pass@host:port/content-database
78- * or instread of setting the XCC-CONNECTION-URI, set the individual XCC options
79- * (XCC-HOSTNAME, XCC-PORT, XCC-USERNAME, XCC-PASSWORD, XCC-DBNAME)
80- */
81+ * or specify on the commandline as a project property: -PcorbXccConnectionUri=xcc://user:pass@host:port/content-database
82+ * or specify as a System property: -DXCC-CONNECTION-URI=xcc://user:pass@host:port/content-database
83+ * or instread of setting the XCC-CONNECTION-URI, set the individual XCC options
84+ * (XCC-HOSTNAME, XCC-PORT, XCC-USERNAME, XCC-PASSWORD, XCC-DBNAME)
85+ */
8186 xccConnectionUri = contentXccUrl
8287}
8388
@@ -92,7 +97,7 @@ task corb(type: com.marklogic.gradle.task.CorbTask) {
9297 * the transform.xqy module to perform any action that you would like - this is just to show how to invoke corb from Gradle.
9398 */
9499task corbAdhoc (type : com.marklogic.gradle.task.CorbTask ) {
95- xccConnectionUri = contentXccUrl
100+ xccConnectionUri = contentXccUrl
96101 urisModule = " src/main/ml-modules/ext/corb2-project/corb/uris.xqy|ADHOC"
97102 processModule = " src/main/ml-modules/ext/corb2-project/corb/transform.xqy|ADHOC"
98103}
0 commit comments