Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ updates:
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "org.springframework.boot:spring-boot-starter*"
- dependency-name: "org.springframework.boot:spring-boot-dependencies"
groups:
spring-boot-starter:
spring-boot:
patterns:
- "org.springframework.boot:spring-boot-starter*"
- "org.springframework.boot:*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
"editor.rulers": [80],
"java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "automatic",
"sonarlint.connectedMode.project": {
"connectionId": "nanotaboada",
"projectKey": "nanotaboada_java.samples.spring.boot"
}
}
252 changes: 94 additions & 158 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,128 +4,104 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<!-- == Spring Boot Starter Parent ================================= -->
<!--
Parent pom providing dependency and plugin management for
applications built with Maven
-->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.8</version>
<version>3.4.4</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>

<groupId>ar.com.nanotaboada</groupId>
<artifactId>java.samples.spring.boot</artifactId>
<version>3.2.2024</version>
<name>java.samples.spring.boot</name>
<description>PoC for a REST API made with Spring Boot using Initializr</description>

<properties>
<java.version>21</java.version>
<lombok.version>1.18.38</lombok.version>
</properties>
<!--
Dependencies
________________________________________________________________________________
-->
<dependencies>
<!-- == Spring Boot Starter Web ==================================== -->
<!--
Spring Boot Starter Web
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat
as the default embedded container.

Starter for building web, including RESTful, applications using
Spring MVC. Uses Tomcat as the default embedded container.
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.3.7</version>
</dependency>
<!-- == Spring Boot Starter Test =================================== -->
<!--
Spring Boot Starter Data JPA
Starter for using Spring Data JPA with Hibernate

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
Starter for testing Spring Boot applications with libraries
including JUnit Jupiter, Hamcrest and Mockito
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>3.3.7</version>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- == Spring Boot Starter Data JPA =============================== -->
<!--
H2 Database Engine
Provides a fast in-memory database that supports JDBC API and R2DBC access, with a small
(2mb) footprint. Supports embedded and server modes as well as a browser based console
application.

https://mvnrepository.com/artifact/com.h2database/h2
Starter for using Spring Data JPA with Hibernate
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
-->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.3.232</version>
<scope>runtime</scope>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- == Spring Boot Starter Validation ============================= -->
<!--
Spring Boot Starter Validation
Starter for using Java Bean Validation with Hibernate Validator

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>3.3.7</version>
</dependency>
<!-- ============== =Spring Boot Starter Cache ===================== -->
<!--
ModelMapper
Simple, Intelligent, Object Mapping.

https://mvnrepository.com/artifact/org.modelmapper/modelmapper
-->
<dependency>
<groupId>org.modelmapper</groupId>
<artifactId>modelmapper</artifactId>
<version>3.2.2</version>
</dependency>

<!--
Spring Boot Starter Security
Starter for using Spring Security.

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security
Starter for using Spring Framework's caching support
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache
-->
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
-->
<!-- == Spring Boot Starter Actuator =============================== -->
<!--
Spring Security Test
Spring Security

https://mvnrepository.com/artifact/org.springframework.security/spring-security-test
Starter for using Spring Boot's Actuator which provides production
ready features to help you monitor and manage your application
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
-->
<!--
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
-->
<!-- == H2 Database Engine ========================================= -->
<!--
Spring Boot Starter Test
Starter for testing Spring Boot applications with libraries including JUnit Jupiter,
Hamcrest and Mockito.

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
Provides a fast in-memory database that supports JDBC API and R2DBC
access, with a small (2mb) footprint. Supports embedded and server
modes as well as a browser based console application.
https://mvnrepository.com/artifact/com.h2database/h2
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>3.2.3</version>
<scope>test</scope>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.3.232</version>
<scope>runtime</scope>
</dependency>
<!-- == AssertJ Fluent Assertions ================================== -->
<!--
AssertJ Fluent Assertions
Rich and fluent assertions for testing for Java

Rich and fluent assertions for testing in Java
https://mvnrepository.com/artifact/org.assertj/assertj-core
-->
<dependency>
Expand All @@ -134,84 +110,80 @@
<version>3.27.3</version>
<scope>test</scope>
</dependency>
<!-- == ModelMapper ================================================ -->
<!--
Simple, Intelligent, Object Mapping.
https://mvnrepository.com/artifact/org.modelmapper/modelmapper
-->
<dependency>
<groupId>org.modelmapper</groupId>
<artifactId>modelmapper</artifactId>
<version>3.2.2</version>
</dependency>
<!-- == SpringDoc OpenAPI Starter WebMVC UI ======================== -->
<!--
SpringDoc OpenAPI Starter WebMVC UI

https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
-->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.8.6</version>
</dependency>
<!--
Spring Boot Starter Actuator
Starter for using Spring Boot's Actuator which provides production ready features to
help you monitor and manage your application

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>3.3.7</version>
</dependency>
<!--
CVE-2022-1471
-->
<!--
SnakeYAML
YAML 1.1 parser and emitter for Java

https://mvnrepository.com/artifact/org.yaml/snakeyaml
-->
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.4</version>
</dependency>
<!--
Spring Boot Starter Cache
Starter for using Spring Framework's caching support

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<version>3.3.7</version>
</dependency>
<!--
Project Lombok
Lombok is a Java library that provides annotations to simplify Java development by automating the generation of
boilerplate code. Key features include automatic generation of getters, setters, equals, hashCode, and toString
methods, as well as a facility for automatic resource management. It aims to reduce the amount of manual coding,
thereby streamlining the codebase and reducing potential for errors.

Lombok is a Java library that provides annotations to simplify
Java development by automating the generation of boilerplate code.
Key features include automatic generation of getters, setters,
equals, hashCode, and toString methods, as well as a facility for
automatic resource management. It aims to reduce the amount of
manual coding, thereby streamlining the codebase and reducing
potential for errors.
https://mvnrepository.com/artifact/org.projectlombok/lombok
-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.38</version>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<!--
Plugins
________________________________________________________________________________
-->
<plugins>
<!-- Apache Maven Compiler Plugin ============================== -->
<!--
The Compiler Plugin is used to compile the sources of your
project.
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!-- == Spring Boot Maven Plugin =============================== -->
<!--
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin
-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- == JaCoCo :: Maven Plugin ================================= -->
<!--
JaCoCo :: Maven Plugin
The JaCoCo Maven Plugin provides the JaCoCo runtime agent to your tests and allows
basic report creation.

The JaCoCo Maven Plugin provides the JaCoCo runtime agent to
your tests and allows basic report creation.
https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin
-->
<plugin>
Expand Down Expand Up @@ -242,40 +214,4 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>
Loading