Skip to content

Commit d1cff5d

Browse files
committed
Merge branch 'develop'
2 parents 702145e + dd99d49 commit d1cff5d

File tree

70 files changed

+2764
-1789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2764
-1789
lines changed

NOTICE.txt

Lines changed: 531 additions & 1602 deletions
Large diffs are not rendered by default.

gradle.properties

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
11
group=com.marklogic
2-
version=0.10.0
3-
4-
# These properties are used for the test application that ml-gradle deploys so we can test out ml-unit-test
5-
mlAppName=marklogic-unit-test-testapp
6-
mlHost=localhost
7-
mlUsername=admin
8-
mlPassword=admin
9-
mlRestPort=8090
10-
mlContentForestsPerHost=1
11-
12-
# Load both the ml-unit-test framework code and some test modules
13-
mlModulePaths=src/main/ml-modules,src/test/ml-modules
14-
15-
# This defaults to src/main/ml-config, but ml-unit-test doesn't have any configuration files itself. So the config
16-
# files are stored under src/test for the sole purpose of running tests on ml-unit-test.
17-
mlConfigPath=src/test/ml-config
2+
version=0.11

ml-unit-test-client/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
.gradle
3+
*.iml
4+
.DS_Store
5+
build
6+
out

build.gradle renamed to ml-unit-test-client/build.gradle

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
buildscript {
2-
repositories {
3-
mavenLocal()
4-
}
5-
}
6-
71
plugins {
82
id "java"
9-
id "maven-publish"
3+
id "maven-publish"
104
id "com.jfrog.bintray" version "1.8.0"
115

126
// ml-gradle is used for deploying a test application so that this project itself can be tested
@@ -30,35 +24,11 @@ dependencies {
3024
testCompile "junit:junit:4+"
3125
}
3226

33-
// Defines a configuration for the MarkLogic modules; used by the modulesZip task below
34-
configurations {
35-
modules
36-
}
37-
38-
39-
jar {
40-
baseName "ml-unit-test-client"
41-
}
42-
4327
task sourcesJar(type: Jar, dependsOn: classes) {
4428
classifier "sources"
4529
from sourceSets.main.allJava
4630
}
4731

48-
task modulesZip(type: Zip) {
49-
description = "Zip up the ml-unit-test MarkLogic modules into a package that can be published"
50-
from("src/main/ml-modules") {
51-
into("ml-unit-test/ml-modules")
52-
}
53-
destinationDir file("build/libs")
54-
baseName "ml-unit-test"
55-
}
56-
57-
// Define the artifacts, in addition to the jar registered by the "java" plugin
58-
artifacts {
59-
modules modulesZip
60-
}
61-
6232
// Setup publishing of both a jar (containing the src/main/java code) and the modules zip
6333
// Can eventually include a test jar (containing some src/test/java code) if desired
6434
// Run "gradle publishtomavenlocal" to publish these locally
@@ -73,18 +43,14 @@ publishing {
7343
artifactId "ml-unit-test-client"
7444
artifact sourcesJar
7545
}
76-
mainModules(MavenPublication) {
77-
artifactId "ml-unit-test"
78-
artifact modulesZip
79-
}
8046
}
8147
}
8248

8349
if (project.hasProperty("myBintrayUser")) {
8450
bintray {
8551
user = myBintrayUser
8652
key = myBintrayKey
87-
publications = ["mainJava", "sourcesJava", "mainModules"]
53+
publications = ["mainJava", "sourcesJava"]
8854
pkg {
8955
repo = "maven"
9056
name = project.name
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These properties are used for the test application that ml-gradle deploys so we can test out ml-unit-test
2+
mlAppName=marklogic-unit-test-testapp
3+
mlHost=localhost
4+
mlUsername=admin
5+
mlPassword=admin
6+
mlRestPort=8090
7+
mlContentForestsPerHost=1
8+
9+
# Load both the ml-unit-test framework code and some test modules
10+
mlModulePaths=../ml-unit-test-modules/src/main/ml-modules,src/test/ml-modules
11+
12+
# This defaults to src/main/ml-config, but ml-unit-test doesn't have any configuration files itself. So the config
13+
# files are stored under src/test for the sole purpose of running tests on ml-unit-test.
14+
mlConfigPath=src/test/ml-config

0 commit comments

Comments
 (0)