Skip to content

Commit 416c168

Browse files
authored
Use spring-boot-starter-parent in spring-batch-neo4j (#159)
1 parent 3b597b7 commit 416c168

File tree

2 files changed

+51
-48
lines changed

2 files changed

+51
-48
lines changed

spring-batch-neo4j/.gitignore

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

spring-batch-neo4j/pom.xml

+50-48
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,24 @@
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>3.3.5</version>
24+
<relativePath/>
25+
</parent>
26+
2027
<groupId>org.springframework.batch.extensions</groupId>
2128
<artifactId>spring-batch-neo4j</artifactId>
2229
<version>1.0.0-SNAPSHOT</version>
30+
2331
<name>Spring Batch Neo4j</name>
2432
<description>Spring Batch extension for Neo4j</description>
2533
<url>https://github.com/spring-projects/spring-batch-extensions/tree/main/spring-batch-neo4j</url>
26-
2734
<licenses>
2835
<license>
2936
<name>Apache 2.0</name>
@@ -32,12 +39,6 @@
3239
</license>
3340
</licenses>
3441

35-
<scm>
36-
<url>https://github.com/spring-projects/spring-batch-extensions</url>
37-
<connection>git://github.com/spring-projects/spring-batch-extensions.git</connection>
38-
<developerConnection>git@github.com:spring-projects/spring-batch-extensions.git</developerConnection>
39-
</scm>
40-
4142
<developers>
4243
<developer>
4344
<id>michael-simons</id>
@@ -51,60 +52,40 @@
5152
</developer>
5253
</developers>
5354

54-
<properties>
55-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
56-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
57-
<java.version>17</java.version>
58-
59-
<!-- Production dependencies-->
60-
<spring.batch.version>5.1.2</spring.batch.version>
61-
<spring-data-neo4j.version>7.3.5</spring-data-neo4j.version>
62-
63-
<!-- Test Dependencies -->
64-
<assertj.version>3.18.1</assertj.version>
65-
<junit.version>5.11.0</junit.version>
66-
<mockito.version>5.12.0</mockito.version>
67-
68-
<!-- Maven plugins -->
69-
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
70-
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
71-
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
72-
</properties>
55+
<scm>
56+
<url>https://github.com/spring-projects/spring-batch-extensions</url>
57+
<connection>git://github.com/spring-projects/spring-batch-extensions.git</connection>
58+
<developerConnection>git@github.com:spring-projects/spring-batch-extensions.git</developerConnection>
59+
</scm>
7360

7461
<dependencies>
62+
<!-- Compile -->
7563
<dependency>
7664
<groupId>org.springframework.batch</groupId>
7765
<artifactId>spring-batch-core</artifactId>
78-
<version>${spring.batch.version}</version>
7966
</dependency>
8067
<dependency>
8168
<groupId>org.springframework.batch</groupId>
8269
<artifactId>spring-batch-infrastructure</artifactId>
83-
<version>${spring.batch.version}</version>
8470
</dependency>
8571
<dependency>
8672
<groupId>org.springframework.data</groupId>
8773
<artifactId>spring-data-neo4j</artifactId>
88-
<version>${spring-data-neo4j.version}</version>
8974
</dependency>
90-
91-
<!-- Test Dependencies -->
75+
<!-- Test -->
9276
<dependency>
93-
<groupId>org.junit.jupiter</groupId>
94-
<artifactId>junit-jupiter-engine</artifactId>
95-
<version>${junit.version}</version>
77+
<groupId>org.assertj</groupId>
78+
<artifactId>assertj-core</artifactId>
9679
<scope>test</scope>
9780
</dependency>
9881
<dependency>
99-
<groupId>org.mockito</groupId>
100-
<artifactId>mockito-core</artifactId>
101-
<version>${mockito.version}</version>
82+
<groupId>org.junit.jupiter</groupId>
83+
<artifactId>junit-jupiter</artifactId>
10284
<scope>test</scope>
10385
</dependency>
10486
<dependency>
105-
<groupId>org.assertj</groupId>
106-
<artifactId>assertj-core</artifactId>
107-
<version>${assertj.version}</version>
87+
<groupId>org.mockito</groupId>
88+
<artifactId>mockito-core</artifactId>
10889
<scope>test</scope>
10990
</dependency>
11091
</dependencies>
@@ -114,10 +95,7 @@
11495
<plugin>
11596
<groupId>org.apache.maven.plugins</groupId>
11697
<artifactId>maven-compiler-plugin</artifactId>
117-
<version>${maven-compiler-plugin.version}</version>
11898
<configuration>
119-
<source>${java.version}</source>
120-
<target>${java.version}</target>
12199
<compilerArgs>
122100
<arg>-Xlint:all,deprecation</arg>
123101
</compilerArgs>
@@ -126,7 +104,6 @@
126104
<plugin>
127105
<groupId>org.apache.maven.plugins</groupId>
128106
<artifactId>maven-javadoc-plugin</artifactId>
129-
<version>${maven-javadoc-plugin.version}</version>
130107
<executions>
131108
<execution>
132109
<id>attach-javadocs</id>
@@ -139,7 +116,6 @@
139116
<plugin>
140117
<groupId>org.apache.maven.plugins</groupId>
141118
<artifactId>maven-source-plugin</artifactId>
142-
<version>${maven-source-plugin.version}</version>
143119
<executions>
144120
<execution>
145121
<id>attach-sources</id>
@@ -149,7 +125,33 @@
149125
</execution>
150126
</executions>
151127
</plugin>
128+
<plugin>
129+
<groupId>org.codehaus.mojo</groupId>
130+
<artifactId>flatten-maven-plugin</artifactId>
131+
<version>1.6.0</version>
132+
<executions>
133+
<execution>
134+
<id>flatten</id>
135+
<phase>process-resources</phase>
136+
<goals>
137+
<goal>flatten</goal>
138+
</goals>
139+
<configuration>
140+
<flattenMode>ossrh</flattenMode>
141+
<pomElements>
142+
<profiles>remove</profiles>
143+
</pomElements>
144+
</configuration>
145+
</execution>
146+
<execution>
147+
<id>flatten-clean</id>
148+
<phase>clean</phase>
149+
<goals>
150+
<goal>clean</goal>
151+
</goals>
152+
</execution>
153+
</executions>
154+
</plugin>
152155
</plugins>
153156
</build>
154-
155157
</project>

0 commit comments

Comments
 (0)