-
Notifications
You must be signed in to change notification settings - Fork 71
Update gradle version to 8.1 #319
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
Conversation
ecebf6a to
860e398
Compare
* Removed deprecated experimentalWarning from kotlinDslOptions * Manually set jvmToolChain(8) for JVM target compatibility in subprojects
860e398 to
964a800
Compare
atomicfu-gradle-plugin/build.gradle
Outdated
| } | ||
| } | ||
|
|
||
| kotlin { |
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.
Replacing
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
with
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
in the root build.gradle file should solve the issue without specifying jvmToolchain for each individual plugin.
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.
fixed
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip |
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.
What's the reason for updating the version?
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.
The reason is preparation of kotlinx.atomicfu for K2. Expected Gradle version to be compatible with K2 is 8.3, so we decided to steadily update Gradle version first on develop and then try out the 8.3-nightly version in the kotlin-community/k2/dev branch.
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 mention that in the commit message when merging the PR? Thanks!
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.
LGTM
Updated gradle to 8.1
jvmToolChain(8)for JVM target compatibility in all subprojects, because for some reason this config was not enough and the build was failing with errors like this: