diff --git a/gradle/gradle-enterprise.gradle.kts.sample b/gradle/gradle-enterprise.gradle.kts.sample new file mode 100644 index 00000000000000..91940e25ec4c5b --- /dev/null +++ b/gradle/gradle-enterprise.gradle.kts.sample @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// You can use this script to configure the gradleEnterprise{} block in your build. +// You need to rename this file to ./gradle/gradle-enterprise.gradle.kts in order for +// this to be processed. +extensions.getByName("gradleEnterprise").withGroovyBuilder { + setProperty("server", "https://your-gradle-enterprise-instance.example.com") + getProperty("buildScan").withGroovyBuilder { + "publishAlways"() + "tag"(if(System.getenv("CI") != null) "CI" else "Local") + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 8e5945144231cf..6d1179da696f43 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -22,3 +22,14 @@ include( // Include this to enable codegen Gradle plugin. includeBuild("packages/react-native-gradle-plugin/") +rootProject.name = "react-native-github" + +plugins { + id("com.gradle.enterprise").version("3.7.1") +} + +// If you specify a file inside gradle/gradle-enterprise.gradle.kts +// you can configure your custom Gradle Enterprise instance +if (File("./gradle/gradle-enterprise.gradle.kts").exists()) { + apply(from = "./gradle/gradle-enterprise.gradle.kts") +} \ No newline at end of file