Skip to content

Conversation

dejan2609
Copy link
Contributor

@dejan2609 dejan2609 commented Aug 8, 2025

Corresponding JIRA ticket:

Related PR:

Intro:

  • Groovy file unixStartScript.txt (that servers as a template for a
    gradlew) path/module was changed in Gradle version 8.8.0

Problem description (for all details see JIRA ticket above):

Loosely related Gradle Github issue:

@github-actions github-actions bot added triage PRs from the community build Gradle build or GitHub Actions small Small PRs labels Aug 8, 2025
@dejan2609
Copy link
Contributor Author

Note: this PR is related to Gradle upgrade from 8 to 9: #19513 (they can be combined into one, but I prefer to keep them separated).
Looping @chia7712 here (he was interested in Gradle upgrade PR) and @apoorvmittal10 (who stumbled upon JIRA ticket just after I created it and decided to subscribe as a watcher 😃).

@dejan2609 dejan2609 changed the title KAFKA-19591 solving issues with gradlew content: an old template version (i.e. file unixStartScript.txt was being referenced) KAFKA-19591 solving issues with gradlew content: an old template version (i.e. file unixStartScript.txt) was being referenced Aug 8, 2025
@dejan2609
Copy link
Contributor Author

Note: please pardon me for force-pushing (I had to fix commit message typo error).

@dejan2609
Copy link
Contributor Author

One check fails (due to PR title being too long); will fix that.
image

@dejan2609 dejan2609 changed the title KAFKA-19591 solving issues with gradlew content: an old template version (i.e. file unixStartScript.txt) was being referenced KAFKA-19591 solving issues with gradlew content: an old template version was being referenced Aug 10, 2025
@dejan2609
Copy link
Contributor Author

dejan2609 commented Aug 11, 2025

FYI @apoorvmittal10: this is ready for review.

On a side note: Github Actions bot is doing some weird stuff with formatting (and hence description above looks kind of odd).

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

@dejan2609
Copy link
Contributor Author

Note: 'triage' label probably could be removed (in order to prevent github actions bot-generated comments)
Anyways: this PR is ready for a review.

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Copy link
Contributor Author

@dejan2609 dejan2609 left a comment

Choose a reason for hiding this comment

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

Mental note to myself: wrapper.gradle version check def fullVersion = project.gradleVersion.count(".") == 1 ? "${project.gradleVersion}.0" : versions.gradle should be removed for Gradle versions >= 9, see links below for more details (and compare versions 8 and 9):

@github-actions github-actions bot removed needs-attention triage PRs from the community labels Aug 20, 2025
…rsion (i.e. file `unixStartScript.txt`) was being referenced
@dejan2609
Copy link
Contributor Author

I will have to rebase/force-push in order to sync two PR's (this one and Gradle upgrade 8 -> 9, see above for more details).

@dejan2609
Copy link
Contributor Author

@apoorvmittal10 you are free to review this PR (but it also makes sense to wait for me to bundle all changes for another PR - thing is that these changes are prerequisite for a Gradle version upgrade ).

dejan2609 added a commit to dejan2609/kafka that referenced this pull request Aug 22, 2025
…); build logic changes will be pushed separately

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:
 - applies for Gradle >= 9: no need to check number of dots in Gradle versions anymore (and to add trailing zero
 if there is just one dot); see here for more details -->> apache#20327 (review)
 - redundant 'gradleVersion' ext property is removed (in favor of 'versions.gradle' usage)
@dejan2609
Copy link
Contributor Author

Note: this PR will be closed, but code is moved and can be reviewed in a related PR here ⬇️

@dejan2609 dejan2609 closed this Aug 22, 2025
@dejan2609 dejan2609 deleted the KAFKA-19591 branch August 22, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Gradle build or GitHub Actions ci-approved small Small PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants