Add foojay-resolver-convention plugin#905
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #905 +/- ##
=========================================
Coverage 86.98% 86.98%
Complexity 1959 1959
=========================================
Files 77 77
Lines 6330 6330
Branches 1223 1223
=========================================
Hits 5506 5506
Misses 420 420
Partials 404 404 ☔ View full report in Codecov by Sentry. |
|
quick question due to my unfamiliarity with these: would it mess with user's local java installations or is it project-specific and will be put in gradle's cache folder or somewhere? |
It will not mess with any local installations; the downloaded toolchain is placed in the Gradle cache. Also, if Gradle's toolchain auto-detection finds a local installation of the right version of the JDK, nothing gets downloaded. |
See https://github.com/gradle/foojay-toolchains. With this plugin, if relevant toolchains are not present on the local machine (e.g., for JDK 8 or JDK 21), Gradle will automatically download an appropriate distribution and place it in the local Gradle cache. This plugin is officially supported by Gradle, so I think it's safe to add. Without this plugin, new contributors may run into issues running basic commands like
./gradlew compileJavasince it requires multiple JDKs to be installed in order to succeed.