Skip to content

Commit 4d3aeb2

Browse files
authored
Merge pull request #607 from hansenmc/corbDependency
update to latest CoRB release 2.5.3
2 parents 6562d33 + 059719e commit 4d3aeb2

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

examples/corb2-project/build.gradle

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,38 @@
1111
* (possibly outdated) set of CoRB options will be applied to the CorbTask.
1212
*/
1313
buildscript {
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

2323
plugins {
2424
id "com.marklogic.ml-gradle" version "4.1.0"
2525
}
2626

2727
repositories {
28-
mavenCentral()
28+
mavenCentral()
2929
}
3030

3131
configurations {
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

3842
dependencies {
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
*/
7479
task 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
*/
9499
task 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
}

examples/corb2-project/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
corbVersion=2.5.2
1+
corbVersion=2.5.3
22
mlHost=localhost
33
mlAppName=corb2-project
44
mlRestPort=8140

0 commit comments

Comments
 (0)