Skip to content

Upgrade Gradle to 8.2.1 #182

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 3 commits into from
Jul 19, 2023
Merged

Upgrade Gradle to 8.2.1 #182

merged 3 commits into from
Jul 19, 2023

Conversation

fzhinkin
Copy link
Collaborator

Upgraded Gradle as a step towards Kotlin 1.9 (required for #164) and K2.

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason not to use 8.2.1?

Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, I think, that updating gradle often also involve update of wrapper.jar and gradlew files (updated when running f.e. ./gradlew wrapper --gradle-version=8.2.1)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

is there a reason not to use 8.2.1?

No, it's just me lagging behind the progress. ;)

@@ -13,7 +13,11 @@ plugins {
}

kotlin {
jvm()
jvm {
Copy link
Contributor

Choose a reason for hiding this comment

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

starting from gradle 8 you also need to add foojay toolchain, so JDK will be automatically downloaded if not present
more info: https://github.com/gradle/foojay-toolchains

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not 100% sure if it should be enabled, filed an issue to discuss it and enable later: #184

Copy link
Contributor

Choose a reason for hiding this comment

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

TBH, I don't really understand, why it should not be enabled - it simplifies contributors setup, as not all of them could have JDK 8 installed, but up to you, for me it's not an issue

@fzhinkin fzhinkin changed the title Upgrade Gradle to 8.1 Upgrade Gradle to 8.2.1 Jul 18, 2023
@shanshin shanshin self-requested a review July 18, 2023 20:21
@fzhinkin fzhinkin merged commit 16d56ef into develop Jul 19, 2023
@fzhinkin fzhinkin deleted the infra/upgrade-gradle branch July 19, 2023 08:02
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.

3 participants