Skip to content

Commit cec144e

Browse files
erichaagdevmp911de
authored andcommitted
Connect build to ge.spring.io.
Add annotation processors for compiler avoidance and disable build caching for tests. Closes #673
1 parent 7851b82 commit cec144e

File tree

8 files changed

+153
-2
lines changed

8 files changed

+153
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.springBeans
44
.settings/
55
target/
6+
.mvn/.gradle-enterprise
67

78
#IntelliJ Stuff
89
.idea

.mvn/extensions.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>com.gradle</groupId>
5+
<artifactId>gradle-enterprise-maven-extension</artifactId>
6+
<version>1.18.1</version>
7+
</extension>
8+
<extension>
9+
<groupId>com.gradle</groupId>
10+
<artifactId>common-custom-user-data-maven-extension</artifactId>
11+
<version>1.12.3</version>
12+
</extension>
13+
</extensions>

.mvn/gradle-enterprise.xml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<gradleEnterprise
3+
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
5+
<server>
6+
<url>https://ge.spring.io</url>
7+
</server>
8+
<buildScan>
9+
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload>
10+
<captureGoalInputFiles>true</captureGoalInputFiles>
11+
<publishIfAuthenticated>true</publishIfAuthenticated>
12+
<obfuscation>
13+
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
14+
</obfuscation>
15+
</buildScan>
16+
<buildCache>
17+
<local>
18+
<enabled>true</enabled>
19+
</local>
20+
<remote>
21+
<server>
22+
<credentials>
23+
<username>${env.GRADLE_ENTERPRISE_CACHE_USERNAME}</username>
24+
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password>
25+
</credentials>
26+
</server>
27+
<enabled>true</enabled>
28+
<storeEnabled>#{env['GRADLE_ENTERPRISE_CACHE_USERNAME'] != null and env['GRADLE_ENTERPRISE_CACHE_PASSWORD'] != null}</storeEnabled>
29+
</remote>
30+
</buildCache>
31+
</gradleEnterprise>

README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Spring Data Examples
1+
= Spring Data Examples image:https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Gradle Enterprise", link="https://ge.spring.io/scans?search.rootProjectNames=Spring Data - Examples"]
22

33
image:https://travis-ci.org/spring-projects/spring-data-examples.svg?branch=main[Build Status,link=https://travis-ci.org/spring-projects/spring-data-examples]
44

bom/pom.xml

+23
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,27 @@
5050

5151
</dependencies>
5252

53+
<build>
54+
<pluginManagement>
55+
<plugins>
56+
<plugin>
57+
<groupId>com.gradle</groupId>
58+
<artifactId>gradle-enterprise-maven-extension</artifactId>
59+
<configuration>
60+
<gradleEnterprise>
61+
<plugins>
62+
<plugin>
63+
<artifactId>maven-surefire-plugin</artifactId>
64+
<outputs>
65+
<notCacheableBecause>these tests showcase Spring Data features and should always rerun</notCacheableBecause>
66+
</outputs>
67+
</plugin>
68+
</plugins>
69+
</gradleEnterprise>
70+
</configuration>
71+
</plugin>
72+
</plugins>
73+
</pluginManagement>
74+
</build>
75+
5376
</project>

elasticsearch/pom.xml

+23
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,27 @@
5757

5858
</dependencies>
5959

60+
<build>
61+
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-compiler-plugin</artifactId>
65+
<configuration>
66+
<annotationProcessorPaths>
67+
<path>
68+
<groupId>org.projectlombok</groupId>
69+
<artifactId>lombok</artifactId>
70+
<version>${lombok.version}</version>
71+
</path>
72+
<path>
73+
<groupId>org.apache.logging.log4j</groupId>
74+
<artifactId>log4j-core</artifactId>
75+
<version>${log4j2.version}</version>
76+
</path>
77+
</annotationProcessorPaths>
78+
</configuration>
79+
</plugin>
80+
</plugins>
81+
</build>
82+
6083
</project>

jdbc/immutables/pom.xml

+23-1
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,36 @@
1515
<name>Spring Data JDBC - Usage with Immutables</name>
1616
<description>Sample project demonstrating Spring Data JDBC features</description>
1717

18+
<properties>
19+
<immutables.version>2.8.8</immutables.version>
20+
</properties>
21+
1822
<dependencies>
1923
<dependency>
2024
<groupId>org.immutables</groupId>
2125
<artifactId>value</artifactId>
22-
<version>2.8.8</version>
26+
<version>${immutables.version}</version>
2327
<scope>provided</scope>
2428
</dependency>
2529

2630
</dependencies>
2731

32+
<build>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.apache.maven.plugins</groupId>
36+
<artifactId>maven-compiler-plugin</artifactId>
37+
<configuration>
38+
<annotationProcessorPaths>
39+
<path>
40+
<groupId>org.immutables</groupId>
41+
<artifactId>value</artifactId>
42+
<version>${immutables.version}</version>
43+
</path>
44+
</annotationProcessorPaths>
45+
</configuration>
46+
</plugin>
47+
</plugins>
48+
</build>
49+
2850
</project>

pom.xml

+38
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,42 @@
186186
</pluginRepository>
187187
</pluginRepositories>
188188

189+
<build>
190+
<pluginManagement>
191+
<plugins>
192+
<plugin>
193+
<groupId>com.gradle</groupId>
194+
<artifactId>gradle-enterprise-maven-extension</artifactId>
195+
<configuration>
196+
<gradleEnterprise>
197+
<plugins>
198+
<plugin>
199+
<artifactId>maven-surefire-plugin</artifactId>
200+
<outputs>
201+
<notCacheableBecause>these tests showcase Spring Data features and should always rerun</notCacheableBecause>
202+
</outputs>
203+
</plugin>
204+
</plugins>
205+
</gradleEnterprise>
206+
</configuration>
207+
</plugin>
208+
</plugins>
209+
</pluginManagement>
210+
<plugins>
211+
<plugin>
212+
<groupId>org.apache.maven.plugins</groupId>
213+
<artifactId>maven-compiler-plugin</artifactId>
214+
<configuration>
215+
<annotationProcessorPaths>
216+
<path>
217+
<groupId>org.projectlombok</groupId>
218+
<artifactId>lombok</artifactId>
219+
<version>${lombok.version}</version>
220+
</path>
221+
</annotationProcessorPaths>
222+
</configuration>
223+
</plugin>
224+
</plugins>
225+
</build>
226+
189227
</project>

0 commit comments

Comments
 (0)