Skip to content

Commit c10aed8

Browse files
committed
Configure Gradle Enterprise
1 parent bdaaa0f commit c10aed8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

settings.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ pluginManagement {
1818
}
1919
}
2020

21+
plugins {
22+
id "com.gradle.enterprise" version "3.8.1"
23+
id "io.spring.ge.conventions" version "0.0.9"
24+
}
25+
2126
rootProject.name = 'spring-graphql'
2227
include 'spring-graphql',
2328
'spring-graphql-test',
@@ -26,3 +31,18 @@ include 'spring-graphql',
2631
'samples:webmvc-http-security',
2732
'samples:webflux-security',
2833
'samples:webflux-websocket'
34+
35+
settings.gradle.projectsLoaded {
36+
gradleEnterprise {
37+
buildScan {
38+
File buildDir = settings.gradle.rootProject.getBuildDir()
39+
buildDir.mkdirs()
40+
new File(buildDir, "build-scan-uri.txt").text = "(build scan not generated)"
41+
buildScanPublished { scan ->
42+
if (buildDir.exists()) {
43+
new File(buildDir, "build-scan-uri.txt").text = "${scan.buildScanUri}\n"
44+
}
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)