-
Notifications
You must be signed in to change notification settings - Fork 14.6k
KAFKA-19174 Gradle version upgrade 8 -->> 9 #19513
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
base: trunk
Are you sure you want to change the base?
Conversation
A label of 'needs-attention' was automatically added to this PR in order to raise the |
This PR is being marked as stale since it has not had any activity in 90 days. If you If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
Update: project compilation works as expected (when powered by Gradle 9) but binary release creation fails. |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
@dejan2609 any update? |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
@chia7712 |
@dejan2609 thanks! |
Pending: I will also explain second problem (specific to Gradle 9, that is). |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
I just accidentally deleted remote branch (from my command line via |
Done, branch recovered 😌 |
FYI @chia7712 Just to sum it up here:
In a broader context:
|
A label of 'needs-attention' was automatically added to this PR in order to raise the |
f9fcc36
to
c3975b7
Compare
A label of 'needs-attention' was automatically added to this PR in order to raise the |
c3975b7
to
1796129
Compare
…rsion (i.e. file `unixStartScript.txt`) was being referenced
details: - gradle: 8.14.1 -->> 9.0.0 - https://github.com/gradle/gradle/releases/tag/v9.0.0 - https://gradle.org/whats-new/gradle-9 - https://docs.gradle.org/9.0.0/userguide/upgrading_major_version_9.html#changes_major_9 - shadow plugin: 8.3.6 -->> 9.0.2 - https://github.com/GradleUp/shadow/releases/tag/9.0.0 - https://github.com/GradleUp/shadow/releases/tag/9.0.1 - https://github.com/GradleUp/shadow/releases/tag/9.0.2 refactoring (performed in order to accomodate Gradle 9 breaking changes): - tasks `siteDocsTar` and `releaseTarGz` are moved out of `core` (and into a new module: `distribution`); GA workflows and Python scripts are changed accordingly - `preserveFileTimestamps` Tar taks property value explicitly set to `true` (default values: Gradle 8: `true`, Gradle 9: 'false') - files and folders permissions are introduced - git placeholder file (.gitkeep) is added in order to preserve `distribution` folder (Apache Rat check for that file is skipped) - `wrapper.gradle` changes: no need to check number of dots for Gradle versions >=9 anymore - redundant 'gradleVersion' ext property is removed (in favor of 'versions.gradle' usage) - folder pattern 'bin/' is added into .gitignore
… dependencies/plugins and GitHub Actions details: - `setup-gradle` GitHub Action: 4.3.0 -->> 4.4.2 (note: this version was tested against Gradle 9: https://github.com/gradle/actions/releases/tag/v4.4.2) - grgit: 4.1.1 -->> 5.3.0 - gradle versions plugin: 0.48.0 -->> 0.52.0 - owasp dependency check : 8.2.1 -->> 12.1.3 - spotbugs: 6.2.3 -->> 6.2.5 - spotless: 6.25.0 -->> 7.2.1 - Zinc Scala compiler: 1.9.2 -->> 1.10.8 - Scala fmt: 3.7.14 -->> 3.9.9 - Scala Coverage: - scoverage: 2.0.11 -->> 2.3.0 - Scala version for scoverage: 2.13.9 -->> 2.13.16 (i.e. `org.scoverage:scalac-scoverage-plugin_2.13.16:2.3.0` will be used) - scoverage gradle plugin: 8.0.3 -->> 8.1
… a `upgrade-system-tests*` submodules related link: https://docs.gradle.org/9.0.0/userguide/upgrading_major_version_9.html#test_task_fails_when_no_tests_are_discovered
1796129
to
a8e9978
Compare
A label of 'needs-attention' was automatically added to this PR in order to raise the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dejan2609 thanks for this patch. It is coool that we could use gradle 9.
@@ -42,7 +42,7 @@ runs: | |||
distribution: temurin | |||
java-version: ${{ inputs.java-version }} | |||
- name: Setup Gradle | |||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use the git commit hash instead, to follow the Apache policy (see below)?
You MUST pin all external actions to the specific git hash (SHA1) of the action that has been reviewed for use by the project. For instance, you MUST pin foobar/baz-action@8843d7f92416211de9ebb963ff4ce28125932878.
reference: https://infra.apache.org/github-actions-policy.html
@@ -164,7 +164,7 @@ jobs: | |||
# Check if there are any empty files under ./site-docs/generated, If any empty files are found, print an error | |||
# message and list the empty files | |||
run: | | |||
tar zxvf core/build/distributions/kafka_2.13-$(./gradlew properties | grep version: | awk '{print $NF}' | head -n 1)-site-docs.tgz | |||
tar zxvf distribution/build/distributions/kafka_2.13-$(./gradlew properties | grep version: | awk '{print $NF}' | head -n 1)-site-docs.tgz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the path may break downstream CI or workflows. Could you please provide more details about this change?
@@ -119,13 +119,13 @@ versions += [ | |||
// When updating the scalafmt version please also update the version field in checkstyle/.scalafmt.conf. scalafmt now | |||
// has the version field as mandatory in its configuration, see | |||
// https://github.com/scalameta/scalafmt/releases/tag/v3.1.0. | |||
scalafmt: "3.7.14", | |||
scoverage: "2.0.11", | |||
scalafmt: "3.9.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those changes necessary?
Thank you for a review @chia7712. |
@reviewers:
if you want to save some time please skip straight to this comment:
⬇️
#19513 (comment)
Related JIRA ticket:
https://issues.apache.org/jira/browse/KAFKA-19174
List of changes:
KAFKA-19591
(unixStartScript.txt from a Gradle 8.7.0)
file unixStartScript.txt
breaking changes
KAFKA-16801
Related links:
Note: new Gradle version brings up some breaking changes (as
always 😃); Kafka build with Gradle 9 has same issues as other
projects: