-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Adopt Gradle 7.4 #7068
Adopt Gradle 7.4 #7068
Conversation
.gitignore
Outdated
@@ -35,3 +35,4 @@ docs/index.md | |||
|
|||
# jenv | |||
/.java-version | |||
kotlin-js-store |
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.
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.
No. It is supposed to be checked in for reproducible builds.
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.
Reverted.
@@ -80,7 +80,6 @@ subprojects { | |||
configure<JavaPluginExtension> { | |||
toolchain { | |||
languageVersion.set(JavaLanguageVersion.of(11)) | |||
vendor.set(JvmVendorSpec.ADOPTOPENJDK) | |||
} |
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.
ADOPTOPENJDK
was deprecated, replace it with AZUL
:
Execution failed for task ':okhttp:compileKotlinJvm'.
> Error while evaluating property 'kotlinJavaToolchainProvider.javaVersion' of task ':okhttp:compileKotlinJvm'
> Failed to calculate the value of property 'providedJvm$kotlin_gradle_plugin'.
> No compatible toolchains found for request filter: {languageVersion=11, vendor=AZUL, implementation=vendor-specific} (auto-detect true, auto-download true)
Any good solutions?
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.
If it works without this line, then go for it. The gradle team and the JDK providers don't seem to have a coordinated (public) plan for how these things work together yet. I asked in gradle issue tracker for a working example of their discovery API, and sounds like there isn't one. :(
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.
Yeah, I've also asked, but no solution.
This reverts commit 808a664.
https://docs.gradle.org/7.4/release-notes.html
The Version catalogs is promoted to a stable feature.