2
0
Эх сурвалжийг харах

Add build scans to PR builds

Ellie Bahadori 4 жил өмнө
parent
commit
7ef3f61924

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