Skip to content

Commit 9122ae8

Browse files
committed
Merge branch 'release/1.1.2' into 1.0-master
2 parents 1cdcafc + 5e9940b commit 9122ae8

File tree

244 files changed

+3043
-3962
lines changed

Some content is hidden

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

244 files changed

+3043
-3962
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ before_install:
77
- ./.travis/download.sh
88

99
script:
10-
- docker-compose build
1110
- docker-compose run marklogic

.travis/Dockerfile-ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ VOLUME /marklogic-data-hub
2929
ADD ./ /marklogic-data-hub
3030
WORKDIR /marklogic-data-hub
3131

32-
RUN ./gradlew tasks 2>&1 > /dev/null
32+
RUN ./gradlew build -x test 2>&1 > /dev/null
3333

3434
# Define default command (which avoids immediate shutdown)
3535
CMD /tmp/startml.sh && ./gradlew test

.travis/download.sh

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,7 @@
11
#!/bin/bash
22

3-
# runs command from parameters and exits with the eoror code of the command
4-
# if it fails
5-
function successOrExit {
6-
"$@"
7-
local status=$?
8-
if [ $status -ne 0 ]; then
9-
echo "$1 exited with error: $status"
10-
exit $status
11-
fi
12-
}
3+
echo "Logging in to Docker registry"
4+
docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
135

14-
set | grep TRAVIS
15-
16-
test $1 && arg1=$1
17-
18-
ver=${ML_VERSION}
19-
fname=MarkLogic-RHEL7-${ver}.x86_64.rpm
20-
fnamedeb="marklogic_"
21-
fnamedeb=$fnamedeb$ver
22-
suff="_amd64.deb"
23-
fnamedeb=$fnamedeb$suff
24-
25-
echo "Logging in for Download"
26-
curl -s -c cookies.txt --data "email=${MLBUILD_USER}&password=${MLBUILD_PASSWORD}" https://developer.marklogic.com/login > /dev/null 2>&1
27-
28-
echo
29-
echo "Getting Download Link"
30-
dl_link=$(curl -s -b cookies.txt --data "download=/download/binaries/8.0/${fname}" https://developer.marklogic.com/get-download-url | perl -pe 's/.*"path":"([^"]+).*/\1/')
31-
url="https://developer.marklogic.com${dl_link}"
32-
33-
echo "********* Downloading MarkLogic $ver"
34-
successOrExit curl -s -k -o ./MarkLogic.rpm $url
6+
echo "Getting Docker Image"
7+
docker pull paxtonhare/marklogic-datahub-1x

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
# Change Log
22

3-
## [v1.1.1](https://github.com/marklogic/marklogic-data-hub/tree/v1.1.1)
3+
## [v1.1.2](https://github.com/marklogic/marklogic-data-hub/tree/v1.1.2)
44

5+
[Full Changelog](https://github.com/marklogic/marklogic-data-hub/compare/v1.1.1...v1.1.2)
6+
7+
**Fixed bugs:**
8+
9+
- null pointer exception on logout [\#383](https://github.com/marklogic/marklogic-data-hub/issues/383)
10+
11+
**Closed issues:**
12+
13+
- gradle version check fails on multiple dots [\#384](https://github.com/marklogic/marklogic-data-hub/issues/384)
14+
- QuickStart Template Compile Error 2.0-alpha.2 [\#380](https://github.com/marklogic/marklogic-data-hub/issues/380)
15+
16+
## [v1.1.1](https://github.com/marklogic/marklogic-data-hub/tree/v1.1.1) (2017-03-20)
517
[Full Changelog](https://github.com/marklogic/marklogic-data-hub/compare/v1.1.0...v1.1.1)
618

719
**Implemented enhancements:**

CONTRIBUTING.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ cd /path/to/data-hub-project/
3939
./gradlew build -x test
4040
```
4141

42-
#### Running your local hub instead of the cloud hosted one
42+
#### Making Changes to the Hub Gradle Plugin
43+
44+
This is for when you are making changes to the ml-data-hub-plugin. This is a gradle plugin that enables Hub Capabilities. Most likely you won't find yourself doing this. You can safely ignore this section.
45+
46+
Still here? Seems you really want to modify the Gradle Plugin. Here's how to tell Gradle to use your local copy instead of the one living up on the Cloud.
47+
4348
```bash
4449
cd /path/to/data-hub-project/
4550
./gradlew publishToMavenLocal
@@ -49,6 +54,9 @@ cd /path/to/data-hub-project/ml-data-hub-plugin
4954

5055
Then in your build.gradle file you will need to use the local version:
5156
```groovy
57+
58+
// this goes at the top above the plugins section
59+
5260
buildscript {
5361
repositories {
5462
mavenLocal()
@@ -58,6 +66,15 @@ buildscript {
5866
classpath "com.marklogic:ml-data-hub:(the version number you chose)"
5967
}
6068
}
69+
70+
plugins {
71+
...
72+
73+
// comment out this line. It pulls the version from the cloud
74+
// id 'com.marklogic.ml-data-hub' version '1.1.2'
75+
}
76+
77+
// this tells gradle to apply the plugin you included above in the buildscript section
6178
apply plugin: "com.marklogic.ml-data-hub"
6279
```
6380

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Alternatively you can include the jar file as a build dependency in your Java pr
4646
**Gradle**
4747

4848
```groovy
49-
compile('com.marklogic:marklogic-data-hub:1.1.1')
49+
compile('com.marklogic:marklogic-data-hub:1.1.2')
5050
```
5151

5252
**Maven**
@@ -55,15 +55,15 @@ compile('com.marklogic:marklogic-data-hub:1.1.1')
5555
<dependency>
5656
<groupId>com.marklogic</groupId>
5757
<artifactId>marklogic-data-hub</artifactId>
58-
<version>1.1.1</version>
58+
<version>1.1.2</version>
5959
<type>pom</type>
6060
</dependency>
6161
```
6262

6363
**Ivy**
6464

6565
```xml
66-
<dependency org='com.marklogic' name='marklogic-data-hub' rev='1.1.1'>
66+
<dependency org='com.marklogic' name='marklogic-data-hub' rev='1.1.2'>
6767
<artifact name='$AID' ext='pom'></artifact>
6868
</dependency>
6969
```
@@ -74,7 +74,7 @@ If you prefer to use gradle for all of your hub interactions then you can includ
7474

7575
```groovy
7676
plugins {
77-
id 'com.marklogic.ml-data-hub' version '1.1.1'
77+
id 'com.marklogic.ml-data-hub' version '1.1.2'
7878
}
7979
```
8080

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '2'
22
services:
33
marklogic:
4-
build:
5-
context: ./
6-
dockerfile: .travis/Dockerfile-ml
4+
image: paxtonhare/marklogic-datahub-1x
75
ports:
86
- "8000-8020"
7+
volumes:
8+
- .:/marklogic-data-hub

examples/spring-batch/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
buildscript {
2+
repositories {
3+
maven {url 'http://developer.marklogic.com/maven2/'}
4+
}
5+
}
6+
17
plugins {
28
id 'java'
39
id 'eclipse'
410
id 'idea'
511
id 'application'
612
id 'net.saliman.properties' version '1.4.6'
7-
id 'com.marklogic.ml-data-hub' version '1.1.1'
13+
id 'com.marklogic.ml-data-hub' version '1.1.2'
814
}
915

1016
repositories {
@@ -13,9 +19,9 @@ repositories {
1319
}
1420

1521
dependencies {
16-
compile 'com.marklogic:marklogic-data-hub:1.1.1'
22+
compile 'com.marklogic:marklogic-data-hub:1.1.2'
1723
compile 'com.marklogic:marklogic-spring-batch-core:0.6.0'
18-
compile 'com.marklogic:ml-javaclient-util:2.12.1'
24+
compile 'com.marklogic:ml-javaclient-util:2.13.0'
1925
testCompile 'com.marklogic:marklogic-spring-batch-test:0.6.0'
2026
}
2127

examples/spring-batch/marklogic-config/databases/final-database.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

examples/spring-batch/marklogic-config/databases/job-database.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)