From 7ef3f619242816683a72b35a1f8b4fb4f32d5203 Mon Sep 17 00:00:00 2001 From: Ellie Bahadori Date: Wed, 30 Sep 2020 07:20:12 -0700 Subject: [PATCH] Add build scans to PR builds --- .github/workflows/pr-build-workflow.yml | 2 +- build.gradle | 7 +++++++ settings.gradle | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-build-workflow.yml b/.github/workflows/pr-build-workflow.yml index db4f6ccbcf..6a1f05ea33 100644 --- a/.github/workflows/pr-build-workflow.yml +++ b/.github/workflows/pr-build-workflow.yml @@ -19,4 +19,4 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - name: Build with Gradle - run: ./gradlew clean build --continue + run: ./gradlew clean build --continue --scan diff --git a/build.gradle b/build.gradle index 613cd33e91..3949d2af09 100644 --- a/build.gradle +++ b/build.gradle @@ -66,6 +66,13 @@ allprojects { } } +if (hasProperty('buildScan')) { + buildScan { + termsOfServiceUrl = 'https://gradle.com/terms-of-service' + termsOfServiceAgree = 'yes' + } +} + nohttp { allowlistFile = project.file("etc/nohttp/allowlist.lines") } diff --git a/settings.gradle b/settings.gradle index 5eed73cd1e..53fb85cf7f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,7 +7,7 @@ pluginManagement { plugins { id "com.gradle.enterprise" version "3.2" - id "io.spring.gradle-enterprise-conventions" version "0.0.2" + id "io.spring.ge.conventions" version "0.0.6" } rootProject.name = 'spring-security'