Skip to content

Commit 7da1810

Browse files
committed
MLE-23430 Updating to Progress copyright
Also updated the notice file, though I'm not sure if this is required to go through legal first. Also, added the testRuntimeOnly to build.gradle to prevent the Gradle 9 deprecations.
1 parent 8214ed4 commit 7da1810

File tree

69 files changed

+1225
-1026
lines changed

Some content is hidden

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

69 files changed

+1225
-1026
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2023 MarkLogic Corporation.
1+
Copyright (c) 2019-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
22

33
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
44

NOTICE.txt

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
MarkLogic® Connector for Kafka
22

3-
Copyright © 2023 MarkLogic Corporation. MarkLogic and MarkLogic logo are trademarks or registered trademarks of MarkLogic Corporation in the United States and other countries. All other trademarks are the property of their respective owners.
3+
Copyright (c) 2019-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
4+
5+
MarkLogic and MarkLogic logo are trademarks or registered trademarks of MarkLogic Corporation in the United States and other countries. All other trademarks are the property of their respective owners.
46

57
This project is licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at
68

@@ -10,12 +12,12 @@ Unless required by applicable law or agreed to in writing, software distributed
1012

1113
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 shall expire three years following the date of the final distribution of this product version by MarkLogic Corporation. To obtain such source code, send an email to [email protected]. Please specify the product and version for which you are requesting source code.
1214

13-
The following software may be included in this project (last updated October 3, 2023):
15+
The following software may be included in this project (last updated August 7, 2025):
1416

1517
-------------------------------------------------------------------------
1618
Third Party Components
1719

18-
Jackson Annotations 2.14.1
20+
Jackson Annotations 2.17.2
1921
Attribution Statements
2022
http://wiki.fasterxml.com/JacksonHome
2123

@@ -27,7 +29,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
2729

2830
Source materials are available for download at: http://github.com/FasterXML/jackson
2931

30-
Jackson Core 2.14.1
32+
Jackson Core 2.17.2
3133
Attribution Statements
3234
http://wiki.fasterxml.com/JacksonHome
3335

@@ -39,7 +41,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
3941

4042
Source materials are available for download at: https://github.com/FasterXML/jackson-core
4143

42-
Jackson Databind 2.14.1
44+
Jackson Databind 2.17.2
4345
Attribution Statements
4446
http://wiki.fasterxml.com/JacksonHome
4547

@@ -51,7 +53,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
5153

5254
Source materials are available for download at: https://github.com/FasterXML/jackson-databind
5355

54-
Jackson Dataformat 2.14.1
56+
Jackson Dataformat 2.17.2
5557
Attribution Statements
5658
http://wiki.fasterxml.com/JacksonHome
5759

@@ -63,7 +65,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
6365

6466
Source materials are available for download at: https://github.com/FasterXML/jackson-databind
6567

66-
OkHttp 4.10.0
68+
OkHttp 4.12.0
6769
Attribution Statements
6870
http://square.github.io/okhttp/
6971

@@ -75,7 +77,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
7577

7678
Source materials are available for download at: https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
7779

78-
Okio 3.0.0
80+
Okio 3.6.0
7981
Attribution Statements
8082
https://square.github.io/okio/2.x/okio/jvm/okio/index.html
8183

@@ -87,7 +89,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
8789

8890
Source materials are available for download at: https://github.com/square/okio
8991

90-
JavaMail 1.6.2
92+
JavaMail 2.0.1
9193
Attribution Statements
9294
https://javaee.github.io/javamail/
9395

@@ -99,7 +101,7 @@ Made available under the Common Development and Distribution License 1.1. See Ap
99101

100102
Source materials are available for download at: https://mvnrepository.com/artifact/com.sun.mail/javax.mail
101103

102-
JavaBeans Activation Framework 1.1
104+
JavaBeans Activation Framework 2.0.1
103105
Attribution Statements
104106
https://www.oracle.com/technetwork/java/index.html
105107

@@ -111,7 +113,7 @@ Made available under the Common Development and Distribution License 1.0. See Ap
111113

112114
Source materials are available for download at: https://www.oracle.com/technetwork/java/jaf11-139815.html
113115

114-
SLF4J API 1.7.36
116+
SLF4J API 2.0.16
115117
Attribution Statements
116118
http://www.slf4j.org
117119

@@ -143,7 +145,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
143145

144146
Source materials are available for download at: https://github.com/qos-ch/slf4j/tree/master/slf4j-api
145147

146-
Java™ Architecture for XML Binding (JAXB) 2.3.3
148+
Java™ Architecture for XML Binding (JAXB) 3.0.2
147149
Attribution Statements
148150
https://javaee.github.io/jaxb-v2/
149151

@@ -180,7 +182,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
180182

181183
Source materials are available for download at: https://github.com/apache/commons-codec
182184

183-
Apache Commons IO™ 2.11.0
185+
Apache Commons IO™ 2.15.1
184186
Attribution Statements
185187
http://commons.apache.org/proper/commons-io/
186188

@@ -241,7 +243,7 @@ Made available under the Common Development and Distribution License 1.1. See Ap
241243

242244
Source materials are available for download at: https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api
243245

244-
Apache Commons Collections™ 4.2
246+
Apache Commons Collections™ 4.5
245247
Attribution Statements
246248
https://commons.apache.org/proper/commons-collections/
247249

@@ -253,7 +255,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
253255

254256
Source materials are available for download at: https://mvnrepository.com/artifact/commons-collections/commons-collections
255257

256-
Apache Commons Lang™ 3.12.0
258+
Apache Commons Lang™ 3.18.0
257259
Attribution Statements
258260
http://commons.apache.org/proper/commons-lang/
259261

@@ -271,7 +273,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
271273

272274
Source materials are available for download at: https://github.com/apache/commons-lang
273275

274-
Apache HttpComponents™ HttpClient 4.5.13
276+
Apache HttpComponents™ HttpClient 5.3.1
275277
Attribution Statements
276278
http://hc.apache.org/httpcomponents-client
277279

@@ -283,7 +285,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
283285

284286
Source materials are available for download at: https://github.com/apache/httpcomponents-client
285287

286-
Apache HttpComponents™ HttpCore 4.4.13
288+
Apache HttpComponents™ HttpCore 5.2.4
287289
Attribution Statements
288290
http://hc.apache.org/httpcomponents-core-ga
289291

@@ -360,7 +362,7 @@ Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin.
360362

361363
Source materials are available for download at: https://github.com/hunterhacker/jdom/
362364

363-
Kotlin Standard Library JDK 1.6.20
365+
Kotlin Standard Library JDK 1.9.10
364366
Attribution Statements
365367
http://kotlinlang.org/
366368

@@ -372,7 +374,7 @@ Made available under the Apache License 2.0. See Appendix for full text.
372374

373375
Source materials are available for download at: https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8
374376

375-
Spring Framework 5.3.24
377+
Spring Framework 5.3.39
376378
Attribution Statements
377379
https://projects.spring.io/spring-framework/
378380

@@ -384,12 +386,12 @@ Made available under the Apache License 2.0. See Appendix for full text.
384386

385387
Source materials are available for download at: https://github.com/spring-projects/spring-framework
386388

387-
Group: com.flipkart.zjsonpatch Name: zjsonpatch Version: 0.4.12
389+
Group: com.flipkart.zjsonpatch Name: zjsonpatch Version: 0.4.16
388390
POM Project URL: https://github.com/flipkart-incubator/zjsonpatch/
389391
POM License: The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt
390392
Copyright 2016 flipkart.com zjsonpatch.
391393

392-
Group: jaxen Name: jaxen Version: 1.2.0
394+
Group: jaxen Name: jaxen Version: 2.0.0
393395
Project URL: http://www.cafeconleche.org/jaxen
394396
POM License: BSD License 2.0 - https://raw.githubusercontent.com/jaxen-xpath/jaxen/master/LICENSE.txt
395397
Embedded license files: jaxen-1.2.0.jar/META-INF/LICENSE.txt

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ dependencies {
8080
testImplementation "ch.qos.logback:logback-classic:1.5.18"
8181
testImplementation "org.slf4j:jcl-over-slf4j:2.0.16"
8282

83+
// Automatic loading of test framework implementation dependencies is deprecated.
84+
// https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
85+
// Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
86+
// org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
87+
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.13.4"
88+
8389
documentation files('LICENSE.txt')
8490
documentation files('NOTICE.txt')
8591
documentation files('README.md')

src/main/java/com/marklogic/kafka/connect/ConfigUtil.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 MarkLogic Corporation
2+
* Copyright (c) 2019-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,10 +20,14 @@
2020
public interface ConfigUtil {
2121

2222
/**
23-
* Convenience method for getting a boolean value from the parsed Kafka config, returning false if the given key is
24-
* not found. This accounts for the fact that boolean options are expected to have "null" as a default value, which
25-
* ensures in Confluent Platform that the default value is shown as "false". Oddly, if the default value is "false",
26-
* then Confluent Platform seems to erroneously show the default value as "true".
23+
* Convenience method for getting a boolean value from the parsed Kafka config,
24+
* returning false if the given key is
25+
* not found. This accounts for the fact that boolean options are expected to
26+
* have "null" as a default value, which
27+
* ensures in Confluent Platform that the default value is shown as "false".
28+
* Oddly, if the default value is "false",
29+
* then Confluent Platform seems to erroneously show the default value as
30+
* "true".
2731
*
2832
* @param key
2933
* @param parsedConfig

src/main/java/com/marklogic/kafka/connect/DatabaseClientConfigBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 MarkLogic Corporation
2+
* Copyright (c) 2019-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,8 @@
2020
import java.util.Map;
2121

2222
/**
23-
* Defines how a map of properties read in by Kafka are used to build an instance of DatabaseClientConfig.
23+
* Defines how a map of properties read in by Kafka are used to build an
24+
* instance of DatabaseClientConfig.
2425
*/
2526
public interface DatabaseClientConfigBuilder {
2627

src/main/java/com/marklogic/kafka/connect/DefaultDatabaseClientConfigBuilder.java

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 MarkLogic Corporation
2+
* Copyright (c) 2019-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,7 +42,8 @@ public DatabaseClientConfig buildDatabaseClientConfig(Map<String, Object> parsed
4242
clientConfig.setPort((Integer) parsedConfig.get(MarkLogicConfig.CONNECTION_PORT));
4343
clientConfig.setBasePath((String) parsedConfig.get(MarkLogicConfig.CONNECTION_BASE_PATH));
4444

45-
String securityContextType = ((String) parsedConfig.get(MarkLogicConfig.CONNECTION_SECURITY_CONTEXT_TYPE)).toUpperCase();
45+
String securityContextType = ((String) parsedConfig.get(MarkLogicConfig.CONNECTION_SECURITY_CONTEXT_TYPE))
46+
.toUpperCase();
4647
clientConfig.setSecurityContextType(SecurityContextType.valueOf(securityContextType));
4748

4849
String database = (String) parsedConfig.get(MarkLogicConfig.CONNECTION_DATABASE);
@@ -77,14 +78,16 @@ public DatabaseClientConfig buildDatabaseClientConfig(Map<String, Object> parsed
7778
configureSimpleSsl(clientConfig);
7879
}
7980

80-
clientConfig.setCloudApiKey((String)parsedConfig.get(MarkLogicConfig.CONNECTION_CLOUD_API_KEY));
81+
clientConfig.setCloudApiKey((String) parsedConfig.get(MarkLogicConfig.CONNECTION_CLOUD_API_KEY));
8182

8283
return clientConfig;
8384
}
8485

8586
/**
86-
* This provides a "simple" SSL configuration in that it uses the JVM's default SSLContext and
87-
* a "trust everything" hostname verifier. No default TrustManager is configured because in the absence of one,
87+
* This provides a "simple" SSL configuration in that it uses the JVM's default
88+
* SSLContext and
89+
* a "trust everything" hostname verifier. No default TrustManager is configured
90+
* because in the absence of one,
8891
* the JVM's cacerts file will be used.
8992
*
9093
* @param clientConfig
@@ -113,10 +116,11 @@ else if ("STRICT".equals(sslHostNameVerifier))
113116

114117
private void configureCustomSslContext(DatabaseClientConfig clientConfig, Map<String, Object> parsedConfig) {
115118
final SecurityContextType securityContextType = clientConfig.getSecurityContextType();
116-
if (SecurityContextType.BASIC.equals(securityContextType) || SecurityContextType.DIGEST.equals(securityContextType)) {
117-
SSLContext sslContext = ConfigUtil.getBoolean(MarkLogicConfig.SSL_MUTUAL_AUTH, parsedConfig) ?
118-
buildTwoWaySslContext(clientConfig.getCertFile(), clientConfig.getCertPassword(), parsedConfig) :
119-
buildOneWaySslContext(parsedConfig);
119+
if (SecurityContextType.BASIC.equals(securityContextType)
120+
|| SecurityContextType.DIGEST.equals(securityContextType)) {
121+
SSLContext sslContext = ConfigUtil.getBoolean(MarkLogicConfig.SSL_MUTUAL_AUTH, parsedConfig)
122+
? buildTwoWaySslContext(clientConfig.getCertFile(), clientConfig.getCertPassword(), parsedConfig)
123+
: buildOneWaySslContext(parsedConfig);
120124
clientConfig.setSslContext(sslContext);
121125
}
122126
}
@@ -139,7 +143,7 @@ private SSLContext buildTwoWaySslContext(String certFile, String certPassword, M
139143
keyManagerFactory.init(clientKeyStore, certPassword.toCharArray());
140144
sslContext = SSLContext.getInstance(tlsVersion);
141145

142-
TrustManager[] trust = new TrustManager[]{new SimpleX509TrustManager()};
146+
TrustManager[] trust = new TrustManager[] { new SimpleX509TrustManager() };
143147
KeyManager[] key = keyManagerFactory.getKeyManagers();
144148
sslContext.init(key, trust, null);
145149
return sslContext;
@@ -150,7 +154,7 @@ private SSLContext buildTwoWaySslContext(String certFile, String certPassword, M
150154

151155
private SSLContext buildOneWaySslContext(Map<String, Object> parsedConfig) {
152156
final String tlsVersion = (String) parsedConfig.get(MarkLogicConfig.TLS_VERSION);
153-
TrustManager[] trust = new TrustManager[]{new SimpleX509TrustManager()};
157+
TrustManager[] trust = new TrustManager[] { new SimpleX509TrustManager() };
154158
SSLContext sslContext;
155159
try {
156160
sslContext = SSLContext.getInstance(tlsVersion);

0 commit comments

Comments
 (0)