Skip to content

Commit dca3a31

Browse files
committed
chore: clean up pom.xml structure and dependencies
1 parent 358bb21 commit dca3a31

2 files changed

Lines changed: 100 additions & 160 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ updates:
66
directory: "/"
77
schedule:
88
interval: "daily"
9+
ignore:
10+
- dependency-name: "org.springframework.boot:spring-boot-starter*"
11+
- dependency-name: "org.springframework.boot:spring-boot-dependencies"
912
groups:
10-
spring-boot-starter:
13+
spring-boot:
1114
patterns:
12-
- "org.springframework.boot:spring-boot-starter*"
15+
- "org.springframework.boot:*"
16+
1317
- package-ecosystem: "github-actions"
1418
directory: "/"
1519
schedule:

pom.xml

Lines changed: 94 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -4,128 +4,104 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
66
<modelVersion>4.0.0</modelVersion>
7+
78
<parent>
9+
<!-- == Spring Boot Starter Parent ================================= -->
10+
<!--
11+
Parent pom providing dependency and plugin management for
12+
applications built with Maven
13+
-->
814
<groupId>org.springframework.boot</groupId>
915
<artifactId>spring-boot-starter-parent</artifactId>
10-
<version>3.1.8</version>
16+
<version>3.4.4</version>
1117
<relativePath/>
12-
<!-- lookup parent from repository -->
1318
</parent>
19+
1420
<groupId>ar.com.nanotaboada</groupId>
1521
<artifactId>java.samples.spring.boot</artifactId>
1622
<version>3.2.2024</version>
1723
<name>java.samples.spring.boot</name>
1824
<description>PoC for a REST API made with Spring Boot using Initializr</description>
25+
1926
<properties>
2027
<java.version>21</java.version>
28+
<lombok.version>1.18.38</lombok.version>
2129
</properties>
22-
<!--
23-
Dependencies
24-
________________________________________________________________________________
25-
-->
2630
<dependencies>
31+
<!-- == Spring Boot Starter Web ==================================== -->
2732
<!--
28-
Spring Boot Starter Web
29-
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat
30-
as the default embedded container.
31-
33+
Starter for building web, including RESTful, applications using
34+
Spring MVC. Uses Tomcat as the default embedded container.
3235
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
3336
-->
3437
<dependency>
3538
<groupId>org.springframework.boot</groupId>
3639
<artifactId>spring-boot-starter-web</artifactId>
37-
<version>3.3.7</version>
3840
</dependency>
41+
<!-- == Spring Boot Starter Test =================================== -->
3942
<!--
40-
Spring Boot Starter Data JPA
41-
Starter for using Spring Data JPA with Hibernate
42-
43-
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
43+
Starter for testing Spring Boot applications with libraries
44+
including JUnit Jupiter, Hamcrest and Mockito
45+
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
4446
-->
4547
<dependency>
4648
<groupId>org.springframework.boot</groupId>
47-
<artifactId>spring-boot-starter-data-jpa</artifactId>
48-
<version>3.3.7</version>
49+
<artifactId>spring-boot-starter-test</artifactId>
50+
<scope>test</scope>
4951
</dependency>
52+
<!-- == Spring Boot Starter Data JPA =============================== -->
5053
<!--
51-
H2 Database Engine
52-
Provides a fast in-memory database that supports JDBC API and R2DBC access, with a small
53-
(2mb) footprint. Supports embedded and server modes as well as a browser based console
54-
application.
55-
56-
https://mvnrepository.com/artifact/com.h2database/h2
54+
Starter for using Spring Data JPA with Hibernate
55+
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
5756
-->
5857
<dependency>
59-
<groupId>com.h2database</groupId>
60-
<artifactId>h2</artifactId>
61-
<version>2.3.232</version>
62-
<scope>runtime</scope>
58+
<groupId>org.springframework.boot</groupId>
59+
<artifactId>spring-boot-starter-data-jpa</artifactId>
6360
</dependency>
61+
<!-- == Spring Boot Starter Validation ============================= -->
6462
<!--
65-
Spring Boot Starter Validation
6663
Starter for using Java Bean Validation with Hibernate Validator
67-
6864
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
6965
-->
7066
<dependency>
7167
<groupId>org.springframework.boot</groupId>
7268
<artifactId>spring-boot-starter-validation</artifactId>
73-
<version>3.3.7</version>
7469
</dependency>
70+
<!-- ============== =Spring Boot Starter Cache ===================== -->
7571
<!--
76-
ModelMapper
77-
Simple, Intelligent, Object Mapping.
78-
79-
https://mvnrepository.com/artifact/org.modelmapper/modelmapper
80-
-->
81-
<dependency>
82-
<groupId>org.modelmapper</groupId>
83-
<artifactId>modelmapper</artifactId>
84-
<version>3.2.2</version>
85-
</dependency>
86-
87-
<!--
88-
Spring Boot Starter Security
89-
Starter for using Spring Security.
90-
91-
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security
72+
Starter for using Spring Framework's caching support
73+
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache
9274
-->
93-
<!--
9475
<dependency>
9576
<groupId>org.springframework.boot</groupId>
96-
<artifactId>spring-boot-starter-security</artifactId>
77+
<artifactId>spring-boot-starter-cache</artifactId>
9778
</dependency>
98-
-->
79+
<!-- == Spring Boot Starter Actuator =============================== -->
9980
<!--
100-
Spring Security Test
101-
Spring Security
102-
103-
https://mvnrepository.com/artifact/org.springframework.security/spring-security-test
81+
Starter for using Spring Boot's Actuator which provides production
82+
ready features to help you monitor and manage your application
83+
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
10484
-->
105-
<!--
10685
<dependency>
107-
<groupId>org.springframework.security</groupId>
108-
<artifactId>spring-security-test</artifactId>
109-
<scope>test</scope>
86+
<groupId>org.springframework.boot</groupId>
87+
<artifactId>spring-boot-starter-actuator</artifactId>
11088
</dependency>
111-
-->
89+
<!-- == H2 Database Engine ========================================= -->
11290
<!--
113-
Spring Boot Starter Test
114-
Starter for testing Spring Boot applications with libraries including JUnit Jupiter,
115-
Hamcrest and Mockito.
116-
117-
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
91+
Provides a fast in-memory database that supports JDBC API and R2DBC
92+
access, with a small (2mb) footprint. Supports embedded and server
93+
modes as well as a browser based console application.
94+
https://mvnrepository.com/artifact/com.h2database/h2
11895
-->
11996
<dependency>
120-
<groupId>org.springframework.boot</groupId>
121-
<artifactId>spring-boot-starter-test</artifactId>
122-
<version>3.2.3</version>
123-
<scope>test</scope>
97+
<groupId>com.h2database</groupId>
98+
<artifactId>h2</artifactId>
99+
<version>2.3.232</version>
100+
<scope>runtime</scope>
124101
</dependency>
102+
<!-- == AssertJ Fluent Assertions ================================== -->
125103
<!--
126-
AssertJ Fluent Assertions
127-
Rich and fluent assertions for testing for Java
128-
104+
Rich and fluent assertions for testing in Java
129105
https://mvnrepository.com/artifact/org.assertj/assertj-core
130106
-->
131107
<dependency>
@@ -134,84 +110,80 @@
134110
<version>3.27.3</version>
135111
<scope>test</scope>
136112
</dependency>
113+
<!-- == ModelMapper ================================================ -->
114+
<!--
115+
Simple, Intelligent, Object Mapping.
116+
https://mvnrepository.com/artifact/org.modelmapper/modelmapper
117+
-->
118+
<dependency>
119+
<groupId>org.modelmapper</groupId>
120+
<artifactId>modelmapper</artifactId>
121+
<version>3.2.2</version>
122+
</dependency>
123+
<!-- == SpringDoc OpenAPI Starter WebMVC UI ======================== -->
137124
<!--
138125
SpringDoc OpenAPI Starter WebMVC UI
139-
140126
https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
141127
-->
142128
<dependency>
143129
<groupId>org.springdoc</groupId>
144130
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
145131
<version>2.8.6</version>
146132
</dependency>
147-
<!--
148-
Spring Boot Starter Actuator
149-
Starter for using Spring Boot's Actuator which provides production ready features to
150-
help you monitor and manage your application
151-
152-
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
153-
-->
154-
<dependency>
155-
<groupId>org.springframework.boot</groupId>
156-
<artifactId>spring-boot-starter-actuator</artifactId>
157-
<version>3.3.7</version>
158-
</dependency>
159-
<!--
160-
CVE-2022-1471
161-
-->
162-
<!--
163-
SnakeYAML
164-
YAML 1.1 parser and emitter for Java
165-
166-
https://mvnrepository.com/artifact/org.yaml/snakeyaml
167-
-->
168-
<dependency>
169-
<groupId>org.yaml</groupId>
170-
<artifactId>snakeyaml</artifactId>
171-
<version>2.4</version>
172-
</dependency>
173-
<!--
174-
Spring Boot Starter Cache
175-
Starter for using Spring Framework's caching support
176-
177-
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache
178-
-->
179-
<dependency>
180-
<groupId>org.springframework.boot</groupId>
181-
<artifactId>spring-boot-starter-cache</artifactId>
182-
<version>3.3.7</version>
183-
</dependency>
184133
<!--
185134
Project Lombok
186-
Lombok is a Java library that provides annotations to simplify Java development by automating the generation of
187-
boilerplate code. Key features include automatic generation of getters, setters, equals, hashCode, and toString
188-
methods, as well as a facility for automatic resource management. It aims to reduce the amount of manual coding,
189-
thereby streamlining the codebase and reducing potential for errors.
190-
135+
Lombok is a Java library that provides annotations to simplify
136+
Java development by automating the generation of boilerplate code.
137+
Key features include automatic generation of getters, setters,
138+
equals, hashCode, and toString methods, as well as a facility for
139+
automatic resource management. It aims to reduce the amount of
140+
manual coding, thereby streamlining the codebase and reducing
141+
potential for errors.
191142
https://mvnrepository.com/artifact/org.projectlombok/lombok
192143
-->
193144
<dependency>
194145
<groupId>org.projectlombok</groupId>
195146
<artifactId>lombok</artifactId>
196-
<version>1.18.38</version>
147+
<version>${lombok.version}</version>
197148
<scope>provided</scope>
198149
</dependency>
199150
</dependencies>
200151
<build>
201-
<!--
202-
Plugins
203-
________________________________________________________________________________
204-
-->
205152
<plugins>
153+
<!-- Apache Maven Compiler Plugin ============================== -->
154+
<!--
155+
The Compiler Plugin is used to compile the sources of your
156+
project.
157+
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
158+
-->
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-compiler-plugin</artifactId>
162+
<version>3.11.0</version>
163+
<configuration>
164+
<source>${java.version}</source>
165+
<target>${java.version}</target>
166+
<annotationProcessorPaths>
167+
<path>
168+
<groupId>org.projectlombok</groupId>
169+
<artifactId>lombok</artifactId>
170+
<version>${lombok.version}</version>
171+
</path>
172+
</annotationProcessorPaths>
173+
</configuration>
174+
</plugin>
175+
<!-- == Spring Boot Maven Plugin =============================== -->
176+
<!--
177+
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin
178+
-->
206179
<plugin>
207180
<groupId>org.springframework.boot</groupId>
208181
<artifactId>spring-boot-maven-plugin</artifactId>
209182
</plugin>
183+
<!-- == JaCoCo :: Maven Plugin ================================= -->
210184
<!--
211-
JaCoCo :: Maven Plugin
212-
The JaCoCo Maven Plugin provides the JaCoCo runtime agent to your tests and allows
213-
basic report creation.
214-
185+
The JaCoCo Maven Plugin provides the JaCoCo runtime agent to
186+
your tests and allows basic report creation.
215187
https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin
216188
-->
217189
<plugin>
@@ -242,40 +214,4 @@
242214
</plugin>
243215
</plugins>
244216
</build>
245-
<repositories>
246-
<repository>
247-
<id>spring-milestones</id>
248-
<name>Spring Milestones</name>
249-
<url>https://repo.spring.io/milestone</url>
250-
<snapshots>
251-
<enabled>false</enabled>
252-
</snapshots>
253-
</repository>
254-
<repository>
255-
<id>spring-snapshots</id>
256-
<name>Spring Snapshots</name>
257-
<url>https://repo.spring.io/snapshot</url>
258-
<releases>
259-
<enabled>false</enabled>
260-
</releases>
261-
</repository>
262-
</repositories>
263-
<pluginRepositories>
264-
<pluginRepository>
265-
<id>spring-milestones</id>
266-
<name>Spring Milestones</name>
267-
<url>https://repo.spring.io/milestone</url>
268-
<snapshots>
269-
<enabled>false</enabled>
270-
</snapshots>
271-
</pluginRepository>
272-
<pluginRepository>
273-
<id>spring-snapshots</id>
274-
<name>Spring Snapshots</name>
275-
<url>https://repo.spring.io/snapshot</url>
276-
<releases>
277-
<enabled>false</enabled>
278-
</releases>
279-
</pluginRepository>
280-
</pluginRepositories>
281217
</project>

0 commit comments

Comments
 (0)