Skip to content

Commit 7d825ce

Browse files
committed
Merge pull request #22089 from runningcode
* gh-22089: Polish "Add Gradle Enterprise Extension" Add Gradle Enterprise Extension Closes gh-22089
2 parents f68671e + 60ff871 commit 7d825ce

File tree

9 files changed

+85
-4
lines changed

9 files changed

+85
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ transaction-logs
3838
secrets.yml
3939
.gradletasknamecache
4040
.sts4-cache
41+
.mvn/.gradle-enterprise/gradle-enterprise-workspace-id

.mvn/extensions.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<extensions>
2+
<extension>
3+
<groupId>com.gradle</groupId>
4+
<artifactId>gradle-enterprise-maven-extension</artifactId>
5+
<version>1.5.3</version>
6+
</extension>
7+
<extension>
8+
<groupId>io.spring.ge.conventions</groupId>
9+
<artifactId>gradle-enterprise-conventions-maven-extension</artifactId>
10+
<version>0.0.5</version>
11+
</extension>
12+
</extensions>

.mvn/gradle-enterprise.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<gradleEnterprise
2+
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
4+
<server>
5+
<url>https://ge.spring.io</url>
6+
</server>
7+
<buildScan>
8+
<publishIfAuthenticated>true</publishIfAuthenticated>
9+
</buildScan>
10+
<buildCache>
11+
<local>
12+
<enabled>true</enabled>
13+
</local>
14+
<remote>
15+
<enabled>true</enabled>
16+
<storeEnabled><![CDATA[#{env['GRADLE_ENTERPRISE_CACHE_USERNAME'] != null && env['GRADLE_ENTERPRISE_CACHE_USERNAME'] != null}]]></storeEnabled>
17+
<server>
18+
<credentials>
19+
<username>${env.GRADLE_ENTERPRISE_CACHE_USERNAME}</username>
20+
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password>
21+
</credentials>
22+
</server>
23+
</remote>
24+
</buildCache>
25+
</gradleEnterprise>

ci/scripts/stage.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ git add pom.xml > /dev/null
3535
git commit -m"Release v$stageVersion" > /dev/null
3636
git tag -a "v$stageVersion" -m"Release v$stageVersion" > /dev/null
3737

38-
run_maven -f spring-boot-project/pom.xml clean deploy -U -Dfull -DaltDeploymentRepository=distribution::default::file://${repository}
39-
run_maven -f spring-boot-samples/pom.xml clean install -U -Dfull -Drepository=file://${repository}
40-
run_maven -f spring-boot-tests/spring-boot-integration-tests/pom.xml clean install -U -Dfull -Drepository=file://${repository}
41-
run_maven -f spring-boot-tests/spring-boot-deployment-tests/pom.xml clean install -U -Dfull -Drepository=file://${repository}
38+
run_maven -f spring-boot-project/pom.xml clean deploy -U -Dfull -DaltDeploymentRepository=distribution::default::file://${repository} -Dgradle.cache.local.enabled=false -Dgradle.cache.remote.enabled=false
39+
run_maven -f spring-boot-samples/pom.xml clean install -U -Dfull -Drepository=file://${repository} -Dgradle.cache.local.enabled=false -Dgradle.cache.remote.enabled=false
40+
run_maven -f spring-boot-tests/spring-boot-integration-tests/pom.xml clean install -U -Dfull -Drepository=file://${repository} -Dgradle.cache.local.enabled=false -Dgradle.cache.remote.enabled=false
41+
run_maven -f spring-boot-tests/spring-boot-deployment-tests/pom.xml clean install -U -Dfull -Drepository=file://${repository} -Dgradle.cache.local.enabled=false -Dgradle.cache.remote.enabled=false
4242

4343
git reset --hard HEAD^ > /dev/null
4444
if [[ $nextVersion != $snapshotVersion ]]; then

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,5 +250,38 @@
250250
</plugin>
251251
</plugins>
252252
</pluginManagement>
253+
<plugins>
254+
<plugin>
255+
<groupId>com.gradle</groupId>
256+
<artifactId>gradle-enterprise-maven-extension</artifactId>
257+
<version>1.5.2</version>
258+
<configuration>
259+
<gradleEnterprise>
260+
<plugins>
261+
<plugin>
262+
<artifactId>maven-checkstyle-plugin</artifactId>
263+
<inputs>
264+
<fileSets>
265+
<fileSet>
266+
<name>allowlist</name>
267+
<paths>
268+
<path>${main.basedir}/src/checkstyle</path>
269+
</paths>
270+
<normalization>RELATIVE_PATH</normalization>
271+
</fileSet>
272+
</fileSets>
273+
<properties>
274+
<property>
275+
<name>propertyExpansion</name>
276+
<value>ignoredValue</value>
277+
</property>
278+
</properties>
279+
</inputs>
280+
</plugin>
281+
</plugins>
282+
</gradleEnterprise>
283+
</configuration>
284+
</plugin>
285+
</plugins>
253286
</build>
254287
</project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file is empty so that the starters project does not generate multiple build scans.

spring-boot-project/spring-boot-tools/spring-boot-loader/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
<addTestClassPath>true</addTestClassPath>
8989
<skipInvocation>${skipTests}</skipInvocation>
9090
<streamLogs>true</streamLogs>
91+
<properties>
92+
<scan>false</scan>
93+
</properties>
9194
</configuration>
9295
</execution>
9396
</executions>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
<addTestClassPath>true</addTestClassPath>
154154
<skipInvocation>${skipTests}</skipInvocation>
155155
<streamLogs>true</streamLogs>
156+
<properties>
157+
<scan>false</scan>
158+
</properties>
156159
</configuration>
157160
</execution>
158161
</executions>

spring-boot-samples-invoker/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<pomIncludes>
3030
<pomInclude>pom.xml</pomInclude>
3131
</pomIncludes>
32+
<properties>
33+
<scan>false</scan>
34+
</properties>
3235
</configuration>
3336
<executions>
3437
<execution>

0 commit comments

Comments
 (0)