Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 0149a0a

Browse files
author
Scott Stafford
committed
Merge branch 'dev'
2 parents 3d35dff + 93a00bb commit 0149a0a

File tree

8 files changed

+40
-22
lines changed

8 files changed

+40
-22
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,30 @@ The gradlew (or gradlew.bat on Windows) command is a Java program called the [Gr
5353

5454
Check the following properties file to see if there is any conflicts with your existing system.
5555

56-
$PROJET_ROOT/core/gradle.properties
56+
$PROJECT_ROOT/core/gradle.properties
57+
58+
The gradle.properties file indicates where to deploy a test database to test the core unit test. The job.properties are used for testing the examples.
5759

5860
From the project root, run the following command. This will create a test database that is configured as a MarkLogic Job Repository.
5961

6062
gradlew :core:mlDeploy
6163

62-
Run the automated unit tests from the project root
64+
## Set your environment variables for running the examples
65+
66+
Every example under the examples project relies on a properties file called job.properties that indicates the connection information for your MarkLogic database. The default job.properties can be found for the project in the following location.
67+
68+
$PROJECT_ROOT/examples/job.properties
69+
70+
The directory location for the job.properties is indicated in the environment variable _job.home_. Make sure that this environment variable (job.home) is set before running any of the example tests.
71+
72+
To execute all of the automated unit tests, from the project root, run the following command.
6373

6474
```
6575
gradlew test
6676
```
6777

78+
This will execute all the core and examples testing.
79+
6880
The policy is the dev branch tests are 100% passing. If all tests run to completion and 100% passing then you are ready to start commiting code.
6981

7082
# What should I work on?

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
subprojects {
23
/*
34
* Not applying the bintray plugin. Couldn't get it working properly when declared
@@ -67,6 +68,17 @@ subprojects {
6768
}
6869

6970
project(':core') {
71+
dependencies {
72+
runtime "org.springframework.batch:spring-batch-core:3.0.7.RELEASE"
73+
74+
//com.marklogic.spring.batch.Main extends com.marklogic.client.helper.LoggingObject
75+
runtime "com.marklogic:ml-javaclient-util:2.10.0-alpha"
76+
77+
runtime "org.springframework:spring-jdbc:4.2.6.RELEASE"
78+
79+
runtime "net.sf.jopt-simple:jopt-simple:5.0.1"
80+
}
81+
7082
task testExamples(type: GradleBuild) {
7183
buildFile = '../examples/build.gradle'
7284
tasks = [ 'test' ]

core/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ dependencies {
1919

2020
testCompile "com.marklogic:ml-junit:2.6.0"
2121

22-
runtime "org.springframework.batch:spring-batch-core:3.0.7.RELEASE"
23-
24-
//com.marklogic.spring.batch.Main extends com.marklogic.client.helper.LoggingObject
25-
runtime "com.marklogic:ml-javaclient-util:2.10.0-alpha"
26-
27-
//Main depends on joptsimple.OptionParser;
28-
runtime "net.sf.jopt-simple:jopt-simple:5.0.1"
29-
30-
runtime "org.springframework:spring-jdbc:4.2.6.RELEASE"
3122
}
3223

3324
jar {

examples/base/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
/*
2-
This base gradle file imports the latest MarkLogic Spring Batch Core and Test libraries that are published to jCenter.
2+
This base gradle file imports the latest MarkLogic Spring Batch Core and Test libraries that are published to jCenter. Make sure that the job.home environment variable is set.
33
*/
44

55
plugins {
66
id "java"
77
id "application"
88
}
99

10-
test {
11-
systemProperty "job.home", examplesDir
12-
}
13-
1410
repositories {
1511
jcenter()
1612
mavenLocal()
1713
}
1814

1915
dependencies {
20-
compile "com.marklogic:marklogic-spring-batch-core:0.7.1"
16+
compile "com.marklogic:marklogic-spring-batch-core:0.7.2"
2117
compile "com.marklogic:ml-javaclient-util:2.9.1"
22-
testCompile "com.marklogic:marklogic-spring-batch-test:0.7.1"
18+
testCompile "com.marklogic:marklogic-spring-batch-test:0.7.2"
2319
}
2420

2521
distributions {

examples/base/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
job.home=../

examples/base/runBaseJob.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build\install\baseJob\bin\base.bat ^
2+
--host oscar --port 8200 --username admin --password admin ^
3+
--config example.YourJobConfig ^
4+
--output_collections yourJob

examples/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ subprojects {
22
apply plugin: "java"
33
apply plugin: "application"
44

5+
/*
6+
// The job.home environment variable is assumed to be predefined. Otherwise, you can uncomment this section and set the examplesDir variable in the gradle.properties file.
57
test {
68
systemProperty "job.home", examplesDir
79
}
8-
10+
*/
911
repositories {
1012
jcenter()
1113
maven { url "http://developer.marklogic.com/maven2" }
1214
mavenLocal()
1315
}
1416

1517
dependencies {
16-
compile "com.marklogic:marklogic-spring-batch-core:0.7.1"
17-
testCompile "com.marklogic:marklogic-spring-batch-test:0.7.1"
18+
compile "com.marklogic:marklogic-spring-batch-core:0.7.2"
19+
testCompile "com.marklogic:marklogic-spring-batch-test:0.7.2"
1820
}
1921

2022
mainClassName = "com.marklogic.spring.batch.Main"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=com.marklogic
2-
version=0.7.1
2+
version=0.7.2
33

44
# Subprojects must override this so that publishing works properly
55
# This is used instead of project.name, which cannot be overridden

0 commit comments

Comments
 (0)