|
4 | 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
5 | 5 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
6 | 6 | <modelVersion>4.0.0</modelVersion> |
| 7 | + |
7 | 8 | <parent> |
| 9 | + <!-- == Spring Boot Starter Parent ================================= --> |
| 10 | + <!-- |
| 11 | + Parent pom providing dependency and plugin management for |
| 12 | + applications built with Maven |
| 13 | + --> |
8 | 14 | <groupId>org.springframework.boot</groupId> |
9 | 15 | <artifactId>spring-boot-starter-parent</artifactId> |
10 | | - <version>3.1.8</version> |
| 16 | + <version>3.4.4</version> |
11 | 17 | <relativePath/> |
12 | | - <!-- lookup parent from repository --> |
13 | 18 | </parent> |
| 19 | + |
14 | 20 | <groupId>ar.com.nanotaboada</groupId> |
15 | 21 | <artifactId>java.samples.spring.boot</artifactId> |
16 | 22 | <version>3.2.2024</version> |
17 | 23 | <name>java.samples.spring.boot</name> |
18 | 24 | <description>PoC for a REST API made with Spring Boot using Initializr</description> |
| 25 | + |
19 | 26 | <properties> |
20 | 27 | <java.version>21</java.version> |
| 28 | + <lombok.version>1.18.38</lombok.version> |
21 | 29 | </properties> |
22 | | - <!-- |
23 | | - Dependencies |
24 | | - ________________________________________________________________________________ |
25 | | - --> |
26 | 30 | <dependencies> |
| 31 | + <!-- == Spring Boot Starter Web ==================================== --> |
27 | 32 | <!-- |
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. |
32 | 35 | https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web |
33 | 36 | --> |
34 | 37 | <dependency> |
35 | 38 | <groupId>org.springframework.boot</groupId> |
36 | 39 | <artifactId>spring-boot-starter-web</artifactId> |
37 | | - <version>3.3.7</version> |
38 | 40 | </dependency> |
| 41 | + <!-- == Spring Boot Starter Test =================================== --> |
39 | 42 | <!-- |
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 |
44 | 46 | --> |
45 | 47 | <dependency> |
46 | 48 | <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> |
49 | 51 | </dependency> |
| 52 | + <!-- == Spring Boot Starter Data JPA =============================== --> |
50 | 53 | <!-- |
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 |
57 | 56 | --> |
58 | 57 | <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> |
63 | 60 | </dependency> |
| 61 | + <!-- == Spring Boot Starter Validation ============================= --> |
64 | 62 | <!-- |
65 | | - Spring Boot Starter Validation |
66 | 63 | Starter for using Java Bean Validation with Hibernate Validator |
67 | | -
|
68 | 64 | https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation |
69 | 65 | --> |
70 | 66 | <dependency> |
71 | 67 | <groupId>org.springframework.boot</groupId> |
72 | 68 | <artifactId>spring-boot-starter-validation</artifactId> |
73 | | - <version>3.3.7</version> |
74 | 69 | </dependency> |
| 70 | + <!-- ============== =Spring Boot Starter Cache ===================== --> |
75 | 71 | <!-- |
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 |
92 | 74 | --> |
93 | | - <!-- |
94 | 75 | <dependency> |
95 | 76 | <groupId>org.springframework.boot</groupId> |
96 | | - <artifactId>spring-boot-starter-security</artifactId> |
| 77 | + <artifactId>spring-boot-starter-cache</artifactId> |
97 | 78 | </dependency> |
98 | | - --> |
| 79 | + <!-- == Spring Boot Starter Actuator =============================== --> |
99 | 80 | <!-- |
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 |
104 | 84 | --> |
105 | | - <!-- |
106 | 85 | <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> |
110 | 88 | </dependency> |
111 | | - --> |
| 89 | + <!-- == H2 Database Engine ========================================= --> |
112 | 90 | <!-- |
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 |
118 | 95 | --> |
119 | 96 | <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> |
124 | 101 | </dependency> |
| 102 | + <!-- == AssertJ Fluent Assertions ================================== --> |
125 | 103 | <!-- |
126 | | - AssertJ Fluent Assertions |
127 | | - Rich and fluent assertions for testing for Java |
128 | | -
|
| 104 | + Rich and fluent assertions for testing in Java |
129 | 105 | https://mvnrepository.com/artifact/org.assertj/assertj-core |
130 | 106 | --> |
131 | 107 | <dependency> |
|
134 | 110 | <version>3.27.3</version> |
135 | 111 | <scope>test</scope> |
136 | 112 | </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 ======================== --> |
137 | 124 | <!-- |
138 | 125 | SpringDoc OpenAPI Starter WebMVC UI |
139 | | -
|
140 | 126 | https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui |
141 | 127 | --> |
142 | 128 | <dependency> |
143 | 129 | <groupId>org.springdoc</groupId> |
144 | 130 | <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
145 | 131 | <version>2.8.6</version> |
146 | 132 | </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> |
184 | 133 | <!-- |
185 | 134 | 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. |
191 | 142 | https://mvnrepository.com/artifact/org.projectlombok/lombok |
192 | 143 | --> |
193 | 144 | <dependency> |
194 | 145 | <groupId>org.projectlombok</groupId> |
195 | 146 | <artifactId>lombok</artifactId> |
196 | | - <version>1.18.38</version> |
| 147 | + <version>${lombok.version}</version> |
197 | 148 | <scope>provided</scope> |
198 | 149 | </dependency> |
199 | 150 | </dependencies> |
200 | 151 | <build> |
201 | | - <!-- |
202 | | - Plugins |
203 | | - ________________________________________________________________________________ |
204 | | - --> |
205 | 152 | <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 | + --> |
206 | 179 | <plugin> |
207 | 180 | <groupId>org.springframework.boot</groupId> |
208 | 181 | <artifactId>spring-boot-maven-plugin</artifactId> |
209 | 182 | </plugin> |
| 183 | + <!-- == JaCoCo :: Maven Plugin ================================= --> |
210 | 184 | <!-- |
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. |
215 | 187 | https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin |
216 | 188 | --> |
217 | 189 | <plugin> |
|
242 | 214 | </plugin> |
243 | 215 | </plugins> |
244 | 216 | </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> |
281 | 217 | </project> |
0 commit comments