-
Notifications
You must be signed in to change notification settings - Fork 15
MLE-24489 - Upgrade to Kafka 4.1.0 and Confluent Platform 8.0 #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,10 +27,15 @@ plugins { | |
| } | ||
|
|
||
| java { | ||
| sourceCompatibility = 1.8 | ||
| targetCompatibility = 1.8 | ||
| toolchain { | ||
| languageVersion = JavaLanguageVersion.of(17) | ||
| } | ||
| sourceCompatibility = JavaVersion.VERSION_17 | ||
| targetCompatibility = JavaVersion.VERSION_17 | ||
| } | ||
|
|
||
|
|
||
|
|
||
| repositories { | ||
| mavenCentral() | ||
| } | ||
|
|
@@ -46,42 +51,43 @@ configurations { | |
| // CVE-2020-15250 (https://www.cve.org/CVERecord?id=CVE-2020-15250) | ||
| force "org.apache.commons:commons-collections4:4.5.0" | ||
|
|
||
| // Force v3.18 of commons-lang3 to avoid CVE-2025-48924 | ||
| // (https://www.cve.org/CVERecord?id=CVE-2025-48924), without also | ||
| // upgrading ml-app-deployer to 6.0.0, which we are not ready to do yet. | ||
| force 'org.apache.commons:commons-lang3:3.18.0' | ||
| // Force v3.19 of commons-lang3 to avoid CVE-2025-48924 (https://www.cve.org/CVERecord?id=CVE-2025-48924), which | ||
| // is caused by the use of avro-compiler v1.12.0 with older dependencies including commons-lang3 v3.12.0. | ||
| force 'org.apache.commons:commons-lang3:3.19.0' | ||
| } | ||
| } | ||
| } | ||
|
|
||
| ext { | ||
| kafkaVersion = "3.9.1" | ||
| kafkaVersion = "4.1.0" | ||
| } | ||
|
|
||
| dependencies { | ||
| def kafkaConnectRuntime = "org.apache.kafka:connect-runtime:${kafkaVersion}" | ||
| compileOnly kafkaConnectRuntime | ||
| compileOnly "org.slf4j:slf4j-api:1.7.36" | ||
|
|
||
| // Force DHF to use the latest version of ml-app-deployer, which minimizes security vulnerabilities | ||
| implementation "com.marklogic:ml-app-deployer:5.0.0" | ||
| // Force DHF to use the latest version of ml-gradle, which minimizes security vulnerabilities | ||
| implementation "com.marklogic:ml-gradle:6.0.1" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update the comment above to reference ml-gradle |
||
|
|
||
| implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.17.2" | ||
| implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.19.0" | ||
|
|
||
| // Note that in general, the version of the DHF jar must match that of the deployed DHF instance. Different versions | ||
| // may work together, but that behavior is not guaranteed. | ||
| implementation("com.marklogic:marklogic-data-hub:6.2.1") { | ||
| exclude module: "ml-gradle" | ||
| } | ||
|
|
||
| testImplementation('com.marklogic:marklogic-junit5:1.5.0') { | ||
| // Use the Java Client declared above. | ||
| exclude module: "marklogic-client-api" | ||
| exclude module: "ml-javaclient-util" | ||
| exclude module: "ml-app-deployer" | ||
|
|
||
| // No need for mlcp-util, it's only used in 'legacy' DHF 4 jobs | ||
| exclude module: "mlcp-util" | ||
| // Excluding because it causes Kafka Connect to complain mightily if included | ||
| exclude module: "logback-classic" | ||
| // Use the Spring dependencies from ml-app-deployer 6 to avoid vulnerabilities in Spring 5. | ||
| exclude group: "org.springframework" | ||
| } | ||
|
|
||
| testImplementation 'com.marklogic:marklogic-junit5:1.5.0' | ||
| // Add back all required Spring 6 modules for tests, since junit5 and test code need more than just spring-test | ||
| testImplementation "org.springframework:spring-test:6.2.11" | ||
| testImplementation "org.springframework:spring-context:6.2.11" | ||
|
|
||
| testImplementation "org.apache.kafka:connect-json:${kafkaVersion}" | ||
| testImplementation kafkaConnectRuntime | ||
|
|
@@ -223,5 +229,5 @@ task connectorArchive(type: Zip, dependsOn: connectorArchive_BuildDirectory, gro | |
| task copyConnectorToDockerVolume(type: Copy, dependsOn: connectorArchive, group: confluentTestingGroup) { | ||
| description = "Copies the connector's archive directory to the Docker volume shared with the Connect server" | ||
| from "build/connectorArchive" | ||
| into "test-app/docker/confluent-marklogic-components" | ||
| into "./docker/confluent-marklogic-components" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| global: | ||
| resolve_timeout: 1m | ||
| smtp_require_tls: false | ||
| receivers: | ||
| - name: default | ||
| route: | ||
| receiver: default | ||
| routes: [] |
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| MARKLOGIC_IMAGE=ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12 | ||
| MARKLOGIC_LOGS_VOLUME=../docker/marklogic/logs |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.