diff options
author | Manu Sridharan <msridhar@gmail.com> | 2024-02-02 10:07:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 13:07:13 -0500 |
commit | 3fc9b8a446cb2b55edbc00695ea0a85ca9bb86b5 (patch) | |
tree | ea9150e928ad98bfc894c32dcb07836714744df2 | |
parent | 848b0b14d5a9abcbd2be66f62e3b6caa0dc61d9c (diff) | |
download | nullaway-3fc9b8a446cb2b55edbc00695ea0a85ca9bb86b5.tar.gz |
Add foojay-resolver-convention plugin (#905)
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 compileJava` since it requires multiple JDKs to be
installed in order to succeed.
-rw-r--r-- | settings.gradle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/settings.gradle b/settings.gradle index bfafe10..575e1cf 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,6 +6,11 @@ pluginManagement { } } +plugins { + // to automatically pull in relevant JDK toolchains when not present on the local machine + id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" +} + include ':annotations' include ':nullaway' include ':sample-library-model' |