Skip to content

Commit 25ca851

Browse files
committed
Update example CoRB version to 2.5.0, and consolidate in gradle.properties entry
update ml-gradle version to 4.1.0 remove custom MarkLogic Maven repo, since now can resolve from jcenter()
1 parent ff44c32 commit 25ca851

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

examples/corb2-project/build.gradle

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* This buildscript shows how corb dependencies can be easily declared and then a Gradle configuration named
3-
* "corb". This configuration is then used as the classpath for CorbTask, which is an extension of Gradle's
4-
* JavaExec task that exposes the corb options as task attributes. The CorbTask will apply any corb options set via
5-
* task attributes, project properties, or System properties.
2+
* This build script shows how CoRB dependencies can be easily declared and then a Gradle configuration named "corb".
3+
* This configuration is then used as the classpath for CorbTask, which is an extension of Gradle's JavaExec task that
4+
* exposes the CoRB options as task attributes.
5+
* The CorbTask will apply any corb options set via task attributes, project properties, or System properties.
66
*/
77

88
/*
@@ -12,25 +12,20 @@
1212
*/
1313
buildscript {
1414
repositories {
15-
jcenter()
16-
// Needed for corb dependency: XCC
17-
maven { url "http://developer.marklogic.com/maven2/" }
15+
jcenter()
1816
}
1917
dependencies {
20-
//Needed for CorbTask to dynamicaly generate properties from CORB Options class
21-
classpath 'com.marklogic:marklogic-corb:2.4.5'
18+
//Needed for CorbTask to dynamically generate properties from CORB Options class
19+
classpath "com.marklogic:marklogic-corb:${corbVersion}"
2220
}
2321
}
2422

2523
plugins {
26-
id "com.marklogic.ml-gradle" version "4.0.4"
24+
id "com.marklogic.ml-gradle" version "4.1.0"
2725
}
2826

2927
repositories {
3028
jcenter()
31-
32-
// Needed for corb dependency: XCC
33-
maven { url "http://developer.marklogic.com/maven2/" }
3429
}
3530

3631
configurations {
@@ -42,7 +37,7 @@ configurations {
4237

4338
dependencies {
4439
// required to run CoRB2
45-
corb 'com.marklogic:marklogic-corb:2.4.5'
40+
corb "com.marklogic:marklogic-corb:${corbVersion}"
4641
// optional
4742
//corb 'org.jasypt:jasypt:1.9.2' // would be necessary to leverage JasyptDecrypter
4843
}

examples/corb2-project/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
corbVersion=2.5.0
12
mlHost=localhost
23
mlAppName=corb2-project
34
mlRestPort=8140

0 commit comments

Comments
 (0)