Skip to content
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

Merged
merged 5 commits into from
Feb 8, 2022
Merged

Adopt Gradle 7.4 #7068

merged 5 commits into from
Feb 8, 2022

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Feb 8, 2022

.gitignore Outdated
@@ -35,3 +35,4 @@ docs/index.md

# jenv
/.java-version
kotlin-js-store
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Should we ignore this file?

Copy link
Collaborator

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.

Copy link
Contributor Author

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)
}
Copy link
Contributor Author

@Goooler Goooler Feb 8, 2022

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?

Copy link
Collaborator

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. :(

Copy link
Contributor Author

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.

@yschimke yschimke merged commit fca8ebb into square:master Feb 8, 2022
@Goooler Goooler deleted the gradle74 branch February 9, 2022 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants