From c3fbff18079f789b9e4bcc47eb4ffeff20a47bd3 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 10 Apr 2021 15:53:05 +0800 Subject: [PATCH] Add buildscan --- .github/workflows/Gradle CI.yml | 2 +- build.gradle.kts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Gradle CI.yml b/.github/workflows/Gradle CI.yml index 2187fa209..7e1f2e3a7 100644 --- a/.github/workflows/Gradle CI.yml +++ b/.github/workflows/Gradle CI.yml @@ -16,4 +16,4 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew build + run: ./gradlew build --scan diff --git a/build.gradle.kts b/build.gradle.kts index 3253b2512..354f341b7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,6 +51,11 @@ subprojects { } } +extensions.findByName("buildScan")?.withGroovyBuilder { + setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service") + setProperty("termsOfServiceAgree", "yes") +} + val experimentalAnnotations = arrayOf( "kotlin.Experimental", "kotlin.RequiresOptIn",