Skip to content

Commit 4717b79

Browse files
committed
Multiple upgrades to prep for Kafka 4
Update Gradle to 8.14.3 Upgrade Data Hub to 6.2.1 Upgrade to MarkLogic 12 Require Java 17
1 parent b922ba4 commit 4717b79

File tree

12 files changed

+133
-116
lines changed

12 files changed

+133
-116
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ distribution.
44

55
### Requirements:
66
* MarkLogic Server 11+
7-
* Java, either version 11 or 17, is required to use the Gradle tools.
7+
* Java version 17 is required to use the Gradle tools.
88
Additionally, SonarQube requires the use of Java 17.
99

1010
See [the Confluent compatibility matrix](https://docs.confluent.io/platform/current/installation/versions-interoperability.html#java)
@@ -73,10 +73,14 @@ application must be deployed. From the "test-app" directory, follow these steps:
7373
2. Edit gradle-local.properties and set `mlUsername` and `mlPassword`
7474
3. Run `./gradlew -i mlDeploy`
7575

76+
Note: If you change the version of Data Hub Framework used by this project, you should also delete the following directories:
77+
* 'test-app/src/main/entity-config'
78+
* 'test-app/src/main/hub-internal-config'
79+
7680

7781
## Automated Testing
7882
Now that your MarkLogic server is configured and the test-app is deployed, you can run the tests via from the root
79-
directory. Note that you must be using Java 11 or Java 17 for this command due to the latest version of Gradle.
83+
directory. Note that you must be using Java 17 for this command due to the latest version of Gradle.
8084
```
8185
./gradlew test
8286
```

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pipeline{
66
buildDiscarder logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '', daysToKeepStr: '30', numToKeepStr: '')
77
}
88
environment{
9-
JAVA_HOME_DIR="/home/builder/java/jdk-11.0.2"
9+
JAVA_HOME_DIR="/home/builder/java/jdk-17.0.2"
1010
GRADLE_DIR =".gradle"
1111
DMC_USER = credentials('MLBUILD_USER')
1212
DMC_PASSWORD = credentials('MLBUILD_PASSWORD')

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dependencies {
5858

5959
// Note that in general, the version of the DHF jar must match that of the deployed DHF instance. Different versions
6060
// may work together, but that behavior is not guaranteed.
61-
implementation("com.marklogic:marklogic-data-hub:6.1.1") {
61+
implementation("com.marklogic:marklogic-data-hub:6.2.1") {
6262
exclude module: "marklogic-client-api"
6363
exclude module: "ml-javaclient-util"
6464
exclude module: "ml-app-deployer"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum

test-app/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MARKLOGIC_IMAGE=ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12

test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'net.saliman.properties' version '1.5.2'
3-
id "com.marklogic.ml-data-hub" version "6.0.0"
3+
id "com.marklogic.ml-data-hub" version "6.2.1"
44
}
55

66
// Tasks for working with Confluent Platform running locally.

test-app/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
version: '3.8'
32
name: marklogic-kafka-confluent
43
services:
54

@@ -194,7 +193,7 @@ services:
194193
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081'
195194

196195
marklogic:
197-
image: "marklogicdb/marklogic-db:latest-11"
196+
image: "${MARKLOGIC_IMAGE}"
198197
platform: linux/amd64
199198
environment:
200199
- INSTALL_CONVERTERS=true
-1.19 KB
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4-
zipStoreBase=GRADLE_USER_HOME
54
zipStorePath=wrapper/dists
5+
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)