From 02b0c63af8717313daf0790d786c6d89bead948f Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 25 Aug 2022 20:18:43 +0800 Subject: Enable Gradle Enterprise (#2641) --- settings.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/settings.gradle.kts b/settings.gradle.kts index 32be05fb..859df2bb 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -46,3 +46,17 @@ pluginManagement { id("com.gradle.plugin-publish") version "0.20.0" } } + +val isCiBuild = System.getenv("GITHUB_ACTIONS") != null || System.getenv("TEAMCITY_VERSION") != null + +plugins { + `gradle-enterprise` +} + +gradleEnterprise { + buildScan { + termsOfServiceUrl = "https://gradle.com/terms-of-service" + termsOfServiceAgree = "yes" + publishAlwaysIf(isCiBuild) + } +} \ No newline at end of file -- cgit