Skip to content

Upgrade to Gradle 9.3.1#15278

Open
jbonofre wants to merge 7 commits intoapache:mainfrom
jbonofre:gh-14094
Open

Upgrade to Gradle 9.3.1#15278
jbonofre wants to merge 7 commits intoapache:mainfrom
jbonofre:gh-14094

Conversation

@jbonofre
Copy link
Member

@jbonofre jbonofre commented Feb 9, 2026

This fixes #14094

@jbonofre
Copy link
Member Author

jbonofre commented Feb 9, 2026

@nastra I did the Gradle 9.3.1 upgrade here. I didn't upgrade the shadow-gradle-plugin to 9.3.1 in this PR, I plan to create another PR dedicated to that. Wdyt ?

@manuzhang manuzhang requested a review from Copilot February 10, 2026 01:47
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

Updates the project’s Gradle wrapper to 9.3.1 and adjusts build scripts for Gradle 9+ Groovy DSL compatibility.

Changes:

  • Bump Gradle wrapper from 8.14.4 to 9.3.1 (URL + SHA).
  • Replace Groovy DSL “setter method call” style with explicit property assignment (e.g., zip64 = true, maxHeapSize = '...', group = 'build').
  • Remove two Baseline-related plugins and add a minimal bom/build.gradle placeholder.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tasks.gradle Updates Javadoc output directory configuration for Gradle 9 compatibility.
spark/v4.1/build.gradle Updates Test heap and ShadowJar zip64 configuration to assignment syntax.
spark/v4.0/build.gradle Same Gradle 9 Groovy DSL assignment syntax updates as Spark 4.1.
mr/build.gradle Updates Test heap configuration to assignment syntax.
gradle/wrapper/gradle-wrapper.properties Upgrades Gradle wrapper distribution URL and checksum to 9.3.1.
gcp-bundle/build.gradle Updates ShadowJar zip64 configuration to assignment syntax.
flink/v2.1/build.gradle Updates ShadowJar zip64 configuration to assignment syntax.
deploy.gradle Updates task group and Maven credentials configuration to assignment syntax.
bom/build.gradle Adds minimal BOM module build file (configuration remains in root build).
baseline.gradle Removes application of two plugins during Baseline configuration.
azure-bundle/build.gradle Updates ShadowJar zip64 configuration to assignment syntax.
aws-bundle/build.gradle Updates ShadowJar zip64 configuration to assignment syntax.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

This references javadoc.destinationDir, which is deprecated/likely removed in newer Gradle versions. Use javadoc.destinationDirectory (and convert to a File only if needed, e.g., via .get().asFile) to keep the javadocJar task compatible with Gradle 9.x.

Suggested change
from javadoc.destinationDir
from javadoc.destinationDirectory.get().asFile

Copilot uses AI. Check for mistakes.
@@ -36,7 +36,6 @@ subprojects {

// Thus we concede to applying all of the Baseline plugins individually on all the projects we are
// ready to enforce linting on.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

This PR removes application of org.inferred.processors and com.palantir.baseline-exact-dependencies. Since that changes build enforcement/behavior (annotation processor handling and dependency verification), add a short comment here explaining why they were removed for the Gradle 9.3.1 upgrade (e.g., incompatibility/removal), and whether there is a replacement mechanism or intentional relaxation.

Suggested change
// ready to enforce linting on.
// ready to enforce linting on.
// Note: as part of the Gradle 9.3.1 upgrade we stopped applying the org.inferred.processors and
// com.palantir.baseline-exact-dependencies plugins because they are no longer compatible / supported.
// We now rely on Gradle's built-in annotation processor handling and dependency verification, which
// is an intentional relaxation compared to the previous Baseline enforcement.

Copilot uses AI. Check for mistakes.

// Thus we concede to applying all of the Baseline plugins individually on all the projects we are
// ready to enforce linting on.
apply plugin: 'org.inferred.processors'
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the alternative to that plugin and the other one that's being removed? For reviewers it would be good to know why those are being removed

Copy link
Member Author

Choose a reason for hiding this comment

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

inferred plugin doesn't support Gradle 9.
I didn't find any alternative.

As all palantir gradle plugins, no change in the last 4 years.

jbonofre and others added 3 commits February 11, 2026 15:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
t.setReproducibleFileOrder(true);
t.setDuplicatesStrategy(DuplicatesStrategy.WARN);
});
apply plugin: 'com.palantir.baseline-exact-dependencies'
Copy link
Contributor

Choose a reason for hiding this comment

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

what are the implications of removing this and the other plugin?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Gradle 9.3.1

2 participants