From 9d3312611e3f16414d60a717770befeedec9319b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 25 May 2022 17:59:04 +0530 Subject: Instate shadow jobs (#1923) --- settings.gradle.kts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'settings.gradle.kts') diff --git a/settings.gradle.kts b/settings.gradle.kts index b47b7cba..1d7993b1 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -27,10 +27,27 @@ pluginManagement { includeGroup("com.google.testing.platform") } } + exclusiveContent { + forRepository(::gradlePluginPortal) + filter { + includeModule("com.gradle", "gradle-enterprise-gradle-plugin") + includeModule("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin") + } + } mavenCentral() } } +plugins { id("com.gradle.enterprise") version "3.10.1" } + +gradleEnterprise { + buildScan { + termsOfServiceUrl = "https://gradle.com/terms-of-service" + termsOfServiceAgree = if (System.getenv("GITHUB_WORKFLOW").isNullOrEmpty()) "no" else "yes" + publishOnFailureIf(!System.getenv("GITHUB_WORKFLOW").isNullOrEmpty()) + } +} + dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { -- cgit v1.2.3