Skip to content

Commit

Permalink
Add foojay-resolver-convention to auto-download the right JDK (#38139)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38139

This adds https://github.com/gradle/foojay-toolchains to our build setup.
This will make sure that if the user doesn't have JDK 17 installed, it will be
autodownloaded once they try to build the first time.

Changelog:
[Internal] [Changed] - Add foojay-resolver-convention to auto-download the right JDK

Reviewed By: sammy-SC

Differential Revision: D47129944

fbshipit-source-id: fd49f6dfe5f87ce3f01e5cce3527144fb96f032a
  • Loading branch information
cortinico authored and facebook-github-bot committed Jun 30, 2023
1 parent 5bda54c commit 3a912a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ if (File("${rootDir}/packages").exists()) {

rootProject.name = "react-native-github"

plugins { id("com.gradle.enterprise").version("3.7.1") }
plugins {
id("com.gradle.enterprise").version("3.7.1")
id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0")
}

// If you specify a file inside gradle/gradle-enterprise.gradle.kts
// you can configure your custom Gradle Enterprise instance
Expand Down

0 comments on commit 3a912a3

Please sign in to comment.