Skip to content

Commit 6749ec2

Browse files
committed
Add gradle ge integration
1 parent 61cdf0a commit 6749ec2

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ nativeBuildToolsVersion=0.9.13
44
jlineVersion=3.21.0
55
st4Version=4.3.1
66
jimfsVersion=1.2
7+
gradleEnterpriseVersion=3.10.3
8+
springGeConventionsVersion=0.0.11

settings.gradle

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pluginManagement {
22
repositories {
3-
maven { url 'https://repo.spring.io/plugins-release' }
43
mavenCentral()
54
gradlePluginPortal()
65
maven { url 'https://repo.spring.io/release' }
@@ -14,11 +13,32 @@ pluginManagement {
1413
plugins {
1514
id 'org.springframework.boot' version "$springBootVersion"
1615
id 'org.graalvm.buildtools.native' version "$nativeBuildToolsVersion"
16+
id 'com.gradle.enterprise' version "$gradleEnterpriseVersion"
17+
id 'io.spring.ge.conventions' version "$springGeConventionsVersion"
1718
}
1819
}
1920

21+
plugins {
22+
id "com.gradle.enterprise"
23+
id "io.spring.ge.conventions"
24+
}
25+
2026
rootProject.name = 'spring-shell'
2127

28+
settings.gradle.projectsLoaded {
29+
gradleEnterprise {
30+
buildScan {
31+
def buildDir = settings.gradle.rootProject.getBuildDir()
32+
buildDir.mkdirs()
33+
new File(buildDir, "build-scan-uri.txt").text = "build scan not generated"
34+
buildScanPublished { scan ->
35+
buildDir.mkdirs()
36+
new File(buildDir, "build-scan-uri.txt").text = "<${scan.buildScanUri}|build scan>\n"
37+
}
38+
}
39+
}
40+
}
41+
2242
include 'spring-shell-autoconfigure'
2343
include 'spring-shell-core'
2444
include 'spring-shell-core-test-support'

0 commit comments

Comments
 (0)