瀏覽代碼

Add build scans to PR builds

Ellie Bahadori 4 年之前
父節點
當前提交
7ef3f61924
共有 3 個文件被更改,包括 9 次插入2 次删除
  1. 1 1
      .github/workflows/pr-build-workflow.yml
  2. 7 0
      build.gradle
  3. 1 1
      settings.gradle

+ 1 - 1
.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

+ 7 - 0
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")
 }

+ 1 - 1
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'