Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
3bedc30
Bumped to 7.2-SNAPSHOT
rjrudin Jan 6, 2025
e91cd23
Merge branch 'master' into develop
rjrudin Jan 13, 2025
a35f769
Fix some timing issues with SSL tests.
BillFarber Mar 31, 2025
d8a5ff5
Merge pull request #1740 from BillFarber/task/sslImprovements
BillFarber Apr 1, 2025
dca35ab
This is better.
BillFarber Apr 1, 2025
62c424a
Merge pull request #1741 from BillFarber/task/sslImprovements
rjrudin Apr 1, 2025
f6049fa
Added tests to verify the use of TLSv1.3
BillFarber Apr 1, 2025
a34b131
Merge pull request #1742 from BillFarber/task/sslImprovements
BillFarber Apr 1, 2025
219edf7
Can now specify SSL Protocol when creating a CertificateAuthContext.
BillFarber Apr 2, 2025
96223f5
Merge pull request #1743 from BillFarber/task/sslImprovements
BillFarber Apr 3, 2025
d2e85e8
Specifically enable the TLSv1.3 protocol.
BillFarber Apr 7, 2025
02ee427
Merge pull request #1744 from BillFarber/task/excludeTls13TestsFromJava8
BillFarber Apr 7, 2025
31866f4
Disable TLSv1.3 tests with Java 8
BillFarber Apr 7, 2025
60cfa27
Merge pull request #1745 from BillFarber/task/excludeTls13TestsFromJava8
BillFarber Apr 7, 2025
40be892
Removed regressions on 11.2.0
rjrudin Apr 24, 2025
b3852b0
Added tests for documenting how REST API patch works
rjrudin Aug 18, 2023
54066c4
Merge pull request #1746 from marklogic/feature/patch-analysis
rjrudin Apr 25, 2025
29d4e52
Updated test based on server fix for URIs with spaces
rjrudin Apr 25, 2025
1f4a92b
Merge pull request #1747 from marklogic/feature/test-uri-with-spaces
rjrudin Apr 25, 2025
9e0b0a3
MLE-17028 Fixing Polaris warnings
rjrudin Apr 25, 2025
3ab3694
Merge pull request #1748 from marklogic/feature/17208-polaris
rjrudin Apr 28, 2025
e064b2e
MLE-21294 First batch of Black Duck fixes
rjrudin Apr 28, 2025
20d159f
Removed dependency on ml-javaclient-util
rjrudin Apr 28, 2025
f70c33d
Merge pull request #1750 from marklogic/feature/21294-bd-2
rjrudin Apr 28, 2025
e9f7eef
Merge branch 'master' into develop
rjrudin Apr 28, 2025
ed988b5
Fixing GenericDocumentTest to only run on MarkLogic 12
rjrudin Apr 28, 2025
7714973
Merge pull request #1752 from marklogic/feature/test-fix
rjrudin Apr 28, 2025
7e42b99
Removed Apache HTTP dependency from tests
rjrudin Apr 28, 2025
0287902
Merge pull request #1753 from marklogic/feature/remove-apache-http
rjrudin Apr 28, 2025
5eb3e0e
Updated CODEOWNERS
rjrudin Apr 28, 2025
f6d6cac
Merge pull request #1749 from marklogic/feature/21294-black-duck
rjrudin Apr 28, 2025
bd11ded
Removing HttpClientConfigurator
rjrudin Apr 28, 2025
2bd0a53
Merge pull request #1755 from marklogic/feature/remove-http-client-co…
rjrudin Apr 29, 2025
ce222a3
More Polaris fixes
rjrudin Apr 28, 2025
f246df5
Merge pull request #1754 from marklogic/feature/21293-high-polaris
rjrudin Apr 29, 2025
8fa7bf4
More Polaris fixes
rjrudin Apr 29, 2025
79dd23e
Merge pull request #1756 from marklogic/feature/21293-more-polaris
rjrudin Apr 29, 2025
fe65f39
Removing jdom from geonames dependency
rjrudin Apr 28, 2025
a6f0836
MLE-20955 Added RowTemplate
rjrudin Apr 16, 2025
81a0776
Merge pull request #1758 from marklogic/feature/row-template
rjrudin Apr 30, 2025
4ed002c
Merge pull request #1757 from marklogic/feature/bd-geonames
rjrudin May 2, 2025
59a09f5
A raft of Polaris fixes
rjrudin May 2, 2025
3676d09
Merge pull request #1759 from marklogic/feature/polaris
rjrudin May 5, 2025
40ab7cc
Fixing RowTemplateTest to require ML 11 or higher
rjrudin May 5, 2025
934e544
Removing some unnecessary test-only dependencies
rjrudin May 5, 2025
5c206b9
Merge pull request #1761 from marklogic/feature/black-duck-fixes
rjrudin May 5, 2025
c109ec8
Fixing a couple bugs based on Polaris issues
rjrudin May 5, 2025
53d4918
Merge pull request #1760 from marklogic/feature/more-polaris
rjrudin May 5, 2025
dc050bf
MLE-21383 Addressing Polaris null references
rjrudin May 6, 2025
c3cee71
Merge pull request #1763 from marklogic/feature/polaris-null-references
rjrudin May 6, 2025
456308b
MLE-21424 Fixing mjs-related tests
rjrudin May 6, 2025
b25cc25
Merge pull request #1764 from marklogic/feature/mjs-fixes
rjrudin May 6, 2025
47db9a0
Few more null checks from Polaris
rjrudin May 6, 2025
4951900
Merge pull request #1765 from marklogic/feature/polaris-nulls
rjrudin May 7, 2025
6aeda28
One last Polaris null check
rjrudin May 7, 2025
676b27b
Fixes for Polaris race conditions
rjrudin May 7, 2025
4717ab6
Merge pull request #1766 from marklogic/feature/polaris-race-condition
rjrudin May 7, 2025
06b49d8
Making mjs tests work on 11 and 12
rjrudin May 7, 2025
a4ff3e9
Merge pull request #1767 from marklogic/feature/mjs-fixes
rjrudin May 8, 2025
4cb2acf
Fixing one more race condition
rjrudin May 8, 2025
632f3b6
Merge pull request #1768 from marklogic/feature/last-race-condition
rjrudin May 8, 2025
dc993b3
Refactor: Changing most of ConnectedRESTQA to use ManageClient
rjrudin May 7, 2025
64c5557
Merge pull request #1769 from marklogic/feature/improve-connected-restqa
rjrudin May 8, 2025
5995d2a
Updated TokenAuthenticationInterceptorTest
rjrudin May 9, 2025
ec60558
Finished switching over to ManageClient
rjrudin May 8, 2025
9d70444
Disabling ml-development-tools tests on MarkLogic 12
rjrudin May 9, 2025
4de6994
Merge pull request #1770 from marklogic/feature/more-connected-restqa…
rjrudin May 9, 2025
ef92681
Fixing WriteHostBatcherTest
rjrudin May 9, 2025
8ebddc5
Merge pull request #1771 from marklogic/feature/test-fixes
rjrudin May 9, 2025
43d0dfa
Fixing a test in StringQueryHostBatcherTest
rjrudin May 12, 2025
e231f73
Fixing TestBiTempMetaValues
rjrudin May 12, 2025
56269ee
MLE-21471 Getting ml-development-tools tests running on 12 again
rjrudin May 12, 2025
e072820
Merge pull request #1772 from marklogic/feature/21471-tools-tests
rjrudin May 13, 2025
461121b
MLE-21476 Deprecates MarkLogicCloudAuthContext
rjrudin May 14, 2025
80ad5b3
Merge pull request #1773 from marklogic/feature/21476-rename-auth-cloud
rjrudin May 14, 2025
86d70f7
MLE-16818 Defaulting protocol to "TLS"
rjrudin May 15, 2025
ce4bb0d
Merge pull request #1774 from marklogic/feature/tlsv1.3
rjrudin May 15, 2025
1d9a193
Fixing docker-compose call in Jenkinsfile
rjrudin May 16, 2025
e58b677
Merge pull request #1775 from marklogic/feature/jenkins-fix
rjrudin May 16, 2025
17a32ef
Added better errors for PDC connection / auth issues
rjrudin May 20, 2025
b45fe8d
Merge pull request #1777 from marklogic/feature/better-pdc-exception
rjrudin May 20, 2025
4a7f812
Create pr-workflow.yaml
SameeraPriyathamTadikonda Jun 6, 2025
e030819
MLE-19374 Updated cosine and annTopK functions
rjrudin Jun 11, 2025
2ae3d85
Merge pull request #1779 from marklogic/feature/20906-vector-function…
rjrudin Jun 11, 2025
83fe435
Run the GraphQL tests again.
BillFarber Jun 13, 2025
ffddcf7
Merge pull request #1780 from BillFarber/task/reenableGraphqlTests
BillFarber Jun 13, 2025
83fe592
MLE-22471 Supporting cosine-distance and other updates from code gen
rjrudin Jun 16, 2025
ef6ac06
Merge pull request #1781 from marklogic/feature/22471-new-vector-func…
rjrudin Jun 16, 2025
7aac434
MLE-22657 Bumped opencsv dependency to address CSV
rjrudin Jun 20, 2025
1d365f9
Merge pull request #1782 from marklogic/feature/22657-bean-utils
rjrudin Jun 20, 2025
1b329f1
PDP-518: Changing the workspace permissions
SameeraPriyathamTadikonda Jul 3, 2025
1e59a0d
Replicating the bug when an empty document is loaded using the JSON d…
BillFarber Jul 7, 2025
5a2fdd0
MLE-17505 Updated test for MarkLogic 12
rjrudin Jul 8, 2025
6a9e64b
Merge pull request #1785 from marklogic/feature/17505-test-fix
rjrudin Jul 9, 2025
f6ffba0
MLE-22657 Excluding beanutils from example project
rjrudin Jul 9, 2025
9bf534b
Merge pull request #1786 from marklogic/feature/22657-bean-utils
rjrudin Jul 9, 2025
2905c8b
MLE-21420 Refactor: Consolidated TransformerFactory construction
rjrudin Jul 9, 2025
5c9112e
Merge pull request #1787 from marklogic/feature/21420-tfactory
rjrudin Jul 9, 2025
afe37be
MLE-22652 Updating copyright
rjrudin Jul 9, 2025
55e3b92
Merge pull request #1784 from BillFarber/task/replicateFormatBug
rjrudin Jul 9, 2025
e6eccc2
Merge pull request #1788 from marklogic/feature/22652-copyright
rjrudin Jul 9, 2025
aede4bc
MLE-22706 Added encode/decode support for vectors
rjrudin Jul 9, 2025
317ffcb
Merge pull request #1789 from marklogic/feature/22706-base64
rjrudin Jul 10, 2025
3a0ab81
MLE-22919 Bumped Jackson to 2.19.0
rjrudin Jul 14, 2025
fa99ed4
Merge pull request #1790 from marklogic/feature/22919-jackson
rjrudin Jul 14, 2025
b6ee5f0
MLE-12345 Restricting vector test to 12
rjrudin Jul 15, 2025
8cbcaed
Merge pull request #1791 from marklogic/feature/jenkins-fixes
rjrudin Jul 15, 2025
24af387
MLE-12345 Updating NOTICE file
rjrudin Jul 21, 2025
7733458
Merge pull request #1792 from marklogic/feature/notice-file
rjrudin Jul 21, 2025
86a29db
MLE-23004 - All Gradle 9 deprecation warnings are fixed
BillFarber Jul 21, 2025
0ea2bb6
Merge pull request #1794 from BillFarber/task/prepare4Gradle9
BillFarber Jul 21, 2025
3ab00f4
MLE-23004 - Cleaning up compiler warnings
BillFarber Jul 21, 2025
368454e
Merge pull request #1795 from BillFarber/task/cleanWarnings
BillFarber Jul 22, 2025
19b4ff5
MLE-12345 Trying 2.2.0 Docker tag
rjrudin Jul 21, 2025
5ac668b
Merge pull request #1793 from marklogic/feature/ml-12
rjrudin Jul 22, 2025
c6c2391
MLE-23004 - Found another Gradle deprecation.
BillFarber Jul 22, 2025
55c80fa
Merge pull request #1796 from BillFarber/task/cleanWarnings
BillFarber Jul 22, 2025
e9248c5
MLE-12345 Reworking how test plumbing clears a database
rjrudin Jul 23, 2025
6bf1119
Merge pull request #1798 from marklogic/feature/test-plumbing-fix
rjrudin Jul 23, 2025
7f88960
MLE-12345 Fixed reference to opencsv
rjrudin Jul 23, 2025
785c110
Merge pull request #1799 from marklogic/feature/opencsv-fix
rjrudin Jul 23, 2025
351ea2b
MLE-12345 One more Black Duck fix
rjrudin Jul 23, 2025
9e933c7
Merge pull request #1800 from marklogic/feature/junit-fix
rjrudin Jul 23, 2025
38d6969
MLE-12345 One more Black Duck fix
rjrudin Jul 23, 2025
acb04cb
Merge pull request #1801 from marklogic/feature/one-more-black-duck
rjrudin Jul 23, 2025
4209947
MLE-12345 I will not rest until Black Duck is happy
rjrudin Jul 23, 2025
56de795
Merge pull request #1802 from marklogic/feature/one-more-black-duck
rjrudin Jul 23, 2025
ca0c6fe
MLE-12345 Updated JUnit to 5.13.4
rjrudin Jul 23, 2025
a3bdcb7
Merge pull request #1803 from marklogic/feature/junit-upgrade
rjrudin Jul 23, 2025
a4e0af7
MLE-12345 Updated data services example project
rjrudin Jul 23, 2025
fde7049
Merge pull request #1804 from marklogic/feature/example-project
rjrudin Jul 23, 2025
dcad928
PDP-598: Cleaning up docker containers,images and volumes
SameeraPriyathamTadikonda Jul 23, 2025
fff16f8
Merge pull request #1805 from SameeraPriyathamTadikonda/develop
rjrudin Jul 23, 2025
379f7c6
MLE-12345 clearDB now uses admin user
rjrudin Jul 23, 2025
1d4d9c5
Merge pull request #1806 from marklogic/feature/test-fix
rjrudin Jul 23, 2025
c548a0a
MLE-12345 Going back to clearing the database
rjrudin Jul 24, 2025
5846bae
Merge pull request #1807 from marklogic/feature/test-fix
rjrudin Jul 24, 2025
75d5252
MLE-23146 Addressed unchecked warnings in src/main/java
rjrudin Jul 24, 2025
3245c2a
MLE-23164 Addressed deprecation warnings in src/main/java
rjrudin Jul 24, 2025
c469ad7
Merge pull request #1809 from marklogic/feature/23146-compile-fixes
rjrudin Jul 24, 2025
b73461f
MLE-23146 Fixed compiler warnings in all tests
rjrudin Jul 24, 2025
14128e4
Merge pull request #1810 from marklogic/feature/23146-compile-fixes
rjrudin Jul 24, 2025
e33267a
MLE-23146 Trying another approach with clearDB
rjrudin Jul 25, 2025
71d50ff
Merge pull request #1811 from marklogic/feature/test-fix
rjrudin Jul 25, 2025
2ca23c5
MLE-22652 Temporarily reverting copyright change
rjrudin Jul 28, 2025
2bd6e44
MLE-22953 Bumping version to 7.2.0
rjrudin Jul 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test-app/.env → .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ MARKLOGIC_IMAGE=progressofficial/marklogic-db:latest
MARKLOGIC_LOGS_VOLUME=./docker/marklogic/logs

# This image should be used instead of the above image when testing functions that only work with MarkLogic 12.
# MARKLOGIC_IMAGE=ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12
#MARKLOGIC_IMAGE=ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12
16 changes: 16 additions & 0 deletions .github/workflows/pr-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 🏷️ JIRA ID Validator

on:
# Using pull_request_target instead of pull_request to handle PRs from forks
pull_request_target:
types: [opened, edited, reopened, synchronize]
# No branch filtering - will run on all PRs

jobs:
jira-pr-check:
name: 🏷️ Validate JIRA ticket ID
# Use the reusable workflow from the central repository
uses: marklogic/pr-workflows/.github/workflows/jira-id-check.yml@main
with:
# Pass the PR title from the event context
pr-title: ${{ github.event.pull_request.title }}
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @anu3990 @billfarber @rjrudin
* @anu3990 @billfarber @rjrudin @stevebio
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ be a local instance or it may be running in a Docker container. If you would lik
instance, you may create the container with the following commands (starting in the project root directory):

```
cd test-app
docker-compose up -d --build
cd ..
```

Once you have a MarkLogic instance ready, the application is then deployed via the following command:
Expand Down
36 changes: 11 additions & 25 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@ def getJava(){
}

def setupDockerMarkLogic(String image){
cleanupDocker()
sh label:'mlsetup', script: '''#!/bin/bash
echo "Removing any running MarkLogic server and clean up MarkLogic data directory"
sudo /usr/local/sbin/mladmin remove
sudo /usr/local/sbin/mladmin cleandata
cd java-client-api/test-app
cd java-client-api
docker compose down -v || true
docker volume prune -f
echo "Using image: "'''+image+'''
docker pull '''+image+'''
MARKLOGIC_IMAGE='''+image+''' MARKLOGIC_LOGS_VOLUME=marklogicLogs docker compose up -d --build
echo "mlPassword=admin" > gradle-local.properties
echo "Waiting for MarkLogic server to initialize."
sleep 60s
cd ..
echo "mlPassword=admin" > gradle-local.properties
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
./gradlew mlTestConnections
Expand Down Expand Up @@ -135,10 +133,11 @@ def postProcessTestResults() {

def tearDownDocker() {
sh label:'tearDownDocker', script: '''#!/bin/bash
cd java-client-api/test-app
cd java-client-api
docker compose down -v || true
docker volume prune -f
'''
cleanupDocker()
}

pipeline{
Expand Down Expand Up @@ -170,7 +169,7 @@ pipeline{
}
}
steps {
setupDockerMarkLogic("ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12")
setupDockerMarkLogic("ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi-rootless:12.0.0-ubi-rootless-2.2.0")
sh label:'run marklogic-client-api tests', script: '''#!/bin/bash
export JAVA_HOME=$JAVA_HOME_DIR
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
Expand All @@ -183,6 +182,7 @@ pipeline{
}
post {
always {
updateWorkspacePermissions()
tearDownDocker()
}
}
Expand All @@ -206,24 +206,6 @@ pipeline{
}
}

stage('regressions-11.2.0') {
when {
allOf {
branch 'develop'
expression {return params.regressions}
}
}
steps {
runTests("ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:11.2.0-ubi")
junit '**/build/**/TEST*.xml'
}
post {
always {
tearDownDocker()
}
}
}

stage('regressions-11') {
when {
allOf {
Expand All @@ -237,6 +219,7 @@ pipeline{
}
post {
always {
updateWorkspacePermissions()
tearDownDocker()
}
}
Expand All @@ -255,6 +238,7 @@ pipeline{
}
post {
always {
updateWorkspacePermissions()
tearDownDocker()
}
}
Expand All @@ -268,11 +252,12 @@ pipeline{
}
}
steps {
runTests("ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12")
runTests("ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi-rootless:12.0.0-ubi-rootless-2.2.0")
junit '**/build/**/TEST*.xml'
}
post {
always {
updateWorkspacePermissions()
tearDownDocker()
}
}
Expand All @@ -291,6 +276,7 @@ pipeline{
}
post {
always {
updateWorkspacePermissions()
tearDownDocker()
}
}
Expand Down
22 changes: 11 additions & 11 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MarkLogic® for Java Client

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.
Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.

To the extent required by the applicable open-source license, a complete machine-readable copy of the source code
corresponding to such code is available upon request. This offer is valid to anyone in receipt of this information and
Expand All @@ -10,32 +10,32 @@ product and version for which you are requesting source code.

Third Party Notices

jackson-databind 2.17.2 (Apache-2.0)
jackson-dataformat-csv 2.17.2 (Apache-2.0)
jackson-databind 2.19.0 (Apache-2.0)
jackson-dataformat-csv 2.19.0 (Apache-2.0)
okhttp 4.12.0 (Apache-2.0)
logging-interceptor 4.12.0 (Apache-2.0)
jakarta.mail 2.0.1 (EPL-1.0)
okhttp-digest 2.7 (Apache-2.0)
jakarta.xml.bind-api 3.0.1 (EPL-1.0)
javax.ws.rs-api 2.1.1 (CDDL-1.1)
jaxb-runtime 3.0.2 (CDDL-1.1)
slf4j-api 2.0.16 (Apache-2.0)
slf4j-api 2.0.17 (Apache-2.0)

Common Licenses

Apache License 2.0 (Apache-2.0)
Common Development and Distribution License 1.1 (CDDL-1.1)
Eclipse Public License 1.0 (EPL-1.0)
Common Development and Distribution License 1.1 (CDDL-1.1)
Eclipse Public License 1.0 (EPL-1.0)

Third-Party Components

The following is a list of the third-party components used by the MarkLogic® for Java Client 7.1.0 (last updated January 6, 2025):
The following is a list of the third-party components used by the MarkLogic® for Java Client 7.2.0 (last updated July 21, 2025):

jackson-databind 2.17.2 (Apache-2.0)
jackson-databind 2.19.0 (Apache-2.0)
https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)

jackson-dataformat-csv 2.17.2 (Apache-2.0)
jackson-dataformat-csv 2.19.0 (Apache-2.0)
https://repo1.maven.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-csv/
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)

Expand Down Expand Up @@ -67,13 +67,13 @@ jaxb-runtime 3.0.2 (Apache-2.0)
https://repo1.maven.org/maven2/org/glassfish/jaxb/jaxb-runtime/
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)

slf4j-api 2.0.16 (Apache-2.0)
slf4j-api 2.0.17 (Apache-2.0)
https://repo1.maven.org/maven2/org/slf4j/slf4j-api/
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)

Common Licenses

The following is a list of the third-party components used by the MarkLogic® for Java Client 7.1.0 (last updated January 6, 2025):
The following is a list of the third-party components used by the MarkLogic® for Java Client 7.2.0 (last updated July 21, 2025):

Apache License 2.0 (Apache-2.0)
https://spdx.org/licenses/Apache-2.0.html
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ To use the client in your [Maven](https://maven.apache.org/) project, include th
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>marklogic-client-api</artifactId>
<version>7.1.0</version>
<version>7.2.0</version>
</dependency>

To use the client in your [Gradle](https://gradle.org/) project, include the following in your `build.gradle` file:

dependencies {
implementation "com.marklogic:marklogic-client-api:7.1.0"
implementation "com.marklogic:marklogic-client-api:7.2.0"
}

Next, read [The Java API in Five Minutes](http://developer.marklogic.com/try/java/index) to get started.
Expand Down
71 changes: 35 additions & 36 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,50 @@
// used for that. So we have to add the properties plugin to the buildscript classpath and then apply the properties
// plugin via subprojects below.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.saliman:gradle-properties-plugin:1.5.2"
}
repositories {
maven {
url = "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.saliman:gradle-properties-plugin:1.5.2"
}
}

subprojects {
apply plugin: "net.saliman.properties"
apply plugin: 'java'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

// To ensure that the Java Client continues to support Java 8, both source and target compatibility are set to 1.8.
// May adjust this for src/test/java so that tests can take advantage of more expressive functions in Java 9+, such
// as Map.of().
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

configurations {
testImplementation.extendsFrom compileOnly
}

repositories {
mavenLocal()
mavenCentral()
}
apply plugin: "net.saliman.properties"
apply plugin: 'java'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation"]
}

// To ensure that the Java Client continues to support Java 8, both source and target compatibility are set to 1.8.
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

configurations {
testImplementation.extendsFrom compileOnly
}

repositories {
mavenLocal()
mavenCentral()
}

test {
systemProperty "file.encoding", "UTF-8"
systemProperty "javax.xml.stream.XMLOutputFactory", "com.sun.xml.internal.stream.XMLOutputFactoryImpl"
}

// Until we do a cleanup of javadoc errors, the build (and specifically the javadoc task) fails on Java 11
// and higher. Preventing that until the cleanup can occur.
javadoc.failOnError = false
// and higher. Preventing that until the cleanup can occur.
javadoc.failOnError = false

// Ignores warnings on param tags with no descriptions. Will remove this once javadoc errors are addressed.
// Until then, it's just a lot of noise.
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
// Ignores warnings on param tags with no descriptions. Will remove this once javadoc errors are addressed.
// Until then, it's just a lot of noise.
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
}
2 changes: 1 addition & 1 deletion test-app/docker-compose.yaml → docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: marklogic-javaclient-test-app
name: docker-tests-java-client

services:

Expand Down
23 changes: 9 additions & 14 deletions examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
// Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

plugins {
id "java-library"
Expand All @@ -7,27 +7,22 @@ plugins {
dependencies {
implementation project(':marklogic-client-api')

// Forcing usage of 3.4.0 instead of 3.2.0 to address vulnerability - https://security.snyk.io/vuln/SNYK-JAVA-COMSQUAREUPOKIO-5820002
implementation 'com.squareup.okio:okio:3.4.0'

// The 'api' configuration is used so that the test configuration in marklogic-client-api doesn't have to declare
// all of these dependencies. This library project won't otherwise be depended on by anything else as it's not
// setup for publishing.
api 'com.squareup.okhttp3:okhttp:4.12.0'
api 'io.github.rburgst:okhttp-digest:2.7'
api 'org.slf4j:slf4j-api:2.0.16'
api "com.fasterxml.jackson.core:jackson-databind:2.17.2"

// hsqldb < 2.7 has a High CVE - https://nvd.nist.gov/vuln/detail/CVE-2022-41853 .
// And hsqldb 2.6+ requires Java 11+. So this is ignored, along with the associated test,
// until the Java Client can drop Java 8 support.
// api 'org.hsqldb:hsqldb:2.7.1'
api 'org.slf4j:slf4j-api:2.0.17'
api "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"

api 'org.jdom:jdom2:2.0.6.1'
api 'org.dom4j:dom4j:2.1.4'
api 'com.google.code.gson:gson:2.10.1'
api 'net.sourceforge.htmlcleaner:htmlcleaner:2.29'
api 'com.opencsv:opencsv:4.6'
api 'org.springframework:spring-jdbc:5.3.39'
api 'org.apache.commons:commons-lang3:3.12.0'
api ('com.opencsv:opencsv:5.11.2') {
// Excluding this due to a security vulnerability, and the test for the example that uses this library
// passes without this on the classpath.
exclude module: "commons-beanutils"
}
api 'org.apache.commons:commons-lang3:3.18.0'
}
Loading