-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
153 lines (145 loc) · 5.36 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="UTF-8"?>
<!-- See the POM reference for explanation of elements
https://maven.apache.org/ref/current/maven-model/maven.html -->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Use the parent project for Spring Boot -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.1</version>
</parent>
<!-- See the guidance for naming and versioning
https://maven.apache.org/guides/mini/guide-naming-conventions.html -->
<groupId>com.github.ojwm.api</groupId>
<artifactId>rest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>rest-api</name>
<description>Demo for Spring Boot RESTful API</description>
<!-- Properties that can be reused throughout the POM -->
<properties>
<commons-lang3.version>3.12.0</commons-lang3.version>
<dependency-check-maven.version>7.1.1</dependency-check-maven.version>
<java.version>17</java.version>
<junit-jupiter-engine.version>5.8.2</junit-jupiter-engine.version>
<mockito-inline.version>4.6.1</mockito-inline.version>
<springdoc.version>1.6.9</springdoc.version>
</properties>
<!-- Look up dependencies at MVN Repository
https://mvnrepository.com/ -->
<dependencies>
<!-- Core Spring Boot starter -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- Useful Spring Boot developer tools
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using.devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!-- Spring Boot's production-ready features
https://spring.io/guides/gs/actuator-service/
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Spring Data JPA with Hibernate -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- Spring Data repositories over REST using Spring Data REST
https://docs.spring.io/spring-data/rest/docs/current/reference/html/ -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<!-- Starter for building web applications using Spring MVC -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Starter for testing Spring Boot applications
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.testing -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<!-- Exclude JUnit 4 -->
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Use JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter-engine.version}</version>
<scope>test</scope>
</dependency>
<!-- Mockito preconfigured inline mock maker
Will be merged into mockito-core in future
https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#39 -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${mockito-inline.version}</version>
<scope>test</scope>
</dependency>
<!-- Springdoc OpenAPI UI
https://springdoc.org/ -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>${springdoc.version}</version>
</dependency>
<!-- Springdoc support for types from spring-boot-starter-data-rest -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-data-rest</artifactId>
<version>${springdoc.version}</version>
</dependency>
<!-- H2 lightweight relational database management system -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Java utility classes
https://commons.apache.org/proper/commons-lang/ -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<!-- Publicly disclosed vulnerability detection
https://owasp.org/www-project-dependency-check/ -->
<dependency>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check-maven.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Spring Boot Maven plugin
https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/ -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludeDevtools>true</excludeDevtools>
</configuration>
</plugin>
</plugins>
</build>
</project>