Skip to content

Commit 8a4d96f

Browse files
committed
Use spring-boot-starter-parent in spring-batch-elasticsearch
1 parent 990979b commit 8a4d96f

File tree

2 files changed

+44
-35
lines changed

2 files changed

+44
-35
lines changed

spring-batch-geode/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.flattened-pom.xml

spring-batch-geode/pom.xml

+43-35
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,25 @@
1313
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
~ See the License for the specific language governing permissions and
1515
~ limitations under the License.
16-
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
17-
16+
-->
17+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1818
<modelVersion>4.0.0</modelVersion>
1919

20+
<parent>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter-parent</artifactId>
23+
<version>2.7.18</version>
24+
<relativePath/>
25+
</parent>
26+
2027
<groupId>org.springframework.batch.extensions</groupId>
2128
<artifactId>spring-batch-geode</artifactId>
2229
<version>0.1.0-SNAPSHOT</version>
30+
2331
<name>Spring Batch Geode</name>
2432
<description>Spring Batch extension for Apache Geode</description>
2533
<url>https://github.com/spring-projects/spring-batch-extensions/tree/main/spring-batch-geode</url>
26-
34+
<inceptionYear>2022</inceptionYear>
2735
<licenses>
2836
<license>
2937
<name>Apache-2.0</name>
@@ -39,47 +47,24 @@
3947
</scm>
4048

4149
<properties>
42-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
44-
<java.version>1.8</java.version>
45-
46-
<!-- Production dependencies-->
47-
<spring.batch.version>4.3.7</spring.batch.version>
48-
<spring-data-geode.version>2.7.5</spring-data-geode.version>
49-
50-
<!-- Test Dependencies -->
51-
<junit-jupiter.version>5.8.2</junit-jupiter.version>
52-
<mockito.version>4.8.0</mockito.version>
53-
54-
<!-- Maven plugins -->
55-
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
56-
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
57-
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
50+
<!-- Plugin versions overriding -->
51+
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
5852
</properties>
5953

6054
<dependencies>
55+
<!-- Compile -->
6156
<dependency>
6257
<groupId>org.springframework.batch</groupId>
6358
<artifactId>spring-batch-core</artifactId>
64-
<version>${spring.batch.version}</version>
6559
</dependency>
6660
<dependency>
6761
<groupId>org.springframework.data</groupId>
6862
<artifactId>spring-data-geode</artifactId>
69-
<version>${spring-data-geode.version}</version>
7063
</dependency>
71-
72-
<!-- Test Dependencies -->
64+
<!-- Test -->
7365
<dependency>
7466
<groupId>org.junit.jupiter</groupId>
7567
<artifactId>junit-jupiter</artifactId>
76-
<version>${junit-jupiter.version}</version>
77-
<scope>test</scope>
78-
</dependency>
79-
<dependency>
80-
<groupId>org.mockito</groupId>
81-
<artifactId>mockito-core</artifactId>
82-
<version>${mockito.version}</version>
8368
<scope>test</scope>
8469
</dependency>
8570
<dependency>
@@ -95,10 +80,7 @@
9580
<plugin>
9681
<groupId>org.apache.maven.plugins</groupId>
9782
<artifactId>maven-compiler-plugin</artifactId>
98-
<version>${maven-compiler-plugin.version}</version>
9983
<configuration>
100-
<source>${java.version}</source>
101-
<target>${java.version}</target>
10284
<compilerArgs>
10385
<arg>-Xlint:all,deprecation</arg>
10486
</compilerArgs>
@@ -120,7 +102,6 @@
120102
<plugin>
121103
<groupId>org.apache.maven.plugins</groupId>
122104
<artifactId>maven-source-plugin</artifactId>
123-
<version>${maven-source-plugin.version}</version>
124105
<executions>
125106
<execution>
126107
<id>attach-sources</id>
@@ -130,7 +111,34 @@
130111
</execution>
131112
</executions>
132113
</plugin>
114+
<plugin>
115+
<groupId>org.codehaus.mojo</groupId>
116+
<artifactId>flatten-maven-plugin</artifactId>
117+
<version>1.6.0</version>
118+
<executions>
119+
<execution>
120+
<id>flatten</id>
121+
<phase>process-resources</phase>
122+
<goals>
123+
<goal>flatten</goal>
124+
</goals>
125+
<configuration>
126+
<flattenMode>ossrh</flattenMode>
127+
<pomElements>
128+
<developers>remove</developers> <!-- FIXME remove once the developers are defined -->
129+
<profiles>remove</profiles>
130+
</pomElements>
131+
</configuration>
132+
</execution>
133+
<execution>
134+
<id>flatten-clean</id>
135+
<phase>clean</phase>
136+
<goals>
137+
<goal>clean</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
</plugin>
133142
</plugins>
134143
</build>
135-
136144
</project>

0 commit comments

Comments
 (0)