-
Notifications
You must be signed in to change notification settings - Fork 280
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
Cosindering using Gradle Java toolchain to avoid Java 11 check #184
Comments
This seems like a good idea. Feel free to contribute a PR if you so wish. |
I thought it wasn't extended to Kotlin toolchains yet in Gradle 7 (and we're still pending the bump to >=8.6) |
Kotlin toolchain support is available since 1.5.30. Gradle introduced the base of this feature in 6.7 or maybe 7.0 (to stable). So I guess we are fine here. I will try it out and report back 👍 |
So I tested a bit: Nevertheless, I update Gradle and made the required changes. Suddently I get a lockfile issue running
I don't know where this is coming from and how to fix it 😞 . When running
However, afterwards I get another issue 😅
|
I forget about the Kotlin stdlib intricacies for |
Could you explain this a bit more to me? 🤔 |
When you run |
When you add gradle Java toolchain to this project it literally doesn't matter which jvm version users (potential contributors) are using to build the project. As long as it can run gradle, the toolchain will make sure that the correct jvm version will be downloaded and used to build the project.
See https://docs.gradle.org/current/userguide/toolchains.html
There is no need for the "is Java 11 check" in the settings.gradle anymore. Additionally, also CI would use that exact same jdk version.
Idea is coming from #181
The text was updated successfully, but these errors were encountered: