Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Sep 25, 2025

This is tempting to start using now because it requires fewer dependency alterations to minimize CVEs. Tests all appear to be fine.

And 4.1.0 is using Jackson 2.19.0, which avoids a lot of messing around.

Copilot AI review requested due to automatic review settings September 25, 2025 18:56
@github-actions
Copy link

github-actions bot commented Sep 25, 2025

Copyright Validation Results
Total: 3 | Passed: 0 | Failed: 0 | Skipped: 3 | at: 2025-09-25 19:15:30 UTC | commit: 90822e4

⏭️ Skipped (Excluded) Files

  • build.gradle
  • gradle.properties
  • marklogic-spark-connector/build.gradle

✅ All files have valid copyright headers!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the Spark dependency from version 4.0.1 to 4.1.0-preview1 and refactors the build configuration to simplify dependency management by removing the custom shadowDependencies configuration in favor of standard Gradle configurations.

  • Updates Spark version to 4.1.0-preview1 which includes Jackson 2.19.0 to reduce CVE concerns
  • Removes custom shadowDependencies configuration and converts dependencies to standard implementation and api configurations
  • Updates shadow plugin version and disables shadow jar publishing to Maven repositories

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
marklogic-spark-connector/build.gradle Refactors dependency management by removing shadowDependencies configuration, updates shadow plugin, and converts dependencies to standard Gradle configurations
gradle.properties Updates Spark version from 4.0.1 to 4.1.0-preview1

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 16 to 17
// Using 'api' so that Flux does not need to declare this as well.
api("com.marklogic:marklogic-client-api:7.2.0") {
Copy link

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converting from shadowDependencies to 'api' exposes this dependency transitively to consumers. This is a breaking change in the API surface. Consider using 'implementation' instead to maintain encapsulation, unless transitive exposure is intentional.

Suggested change
// Using 'api' so that Flux does not need to declare this as well.
api("com.marklogic:marklogic-client-api:7.2.0") {
// Using 'implementation' to avoid exposing this dependency transitively to consumers.
implementation("com.marklogic:marklogic-client-api:7.2.0") {

Copilot uses AI. Check for mistakes.
This is tempting to start using now because it requires fewer dependency alterations to minimize CVEs. Tests all appear to be fine.

And 4.1.0 is using Jackson 2.19.0, which avoids a lot of messing around.
@rjrudin rjrudin force-pushed the feature/4.1-preview branch from 5bfe11c to 90822e4 Compare September 25, 2025 19:15
@rjrudin rjrudin merged commit f02f1f2 into develop Sep 25, 2025
2 of 3 checks passed
@rjrudin rjrudin deleted the feature/4.1-preview branch September 25, 2025 19:16
@sonarqube-progress-marklogic
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants