-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
266 lines (257 loc) · 10.6 KB
/
Copy pathpom.xml
File metadata and controls
266 lines (257 loc) · 10.6 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.14</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.ericbouchut</groupId>
<artifactId>learn-dev</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>learn-dev-backend</name>
<description>learn-dev-backend</description>
<url>https://github.com/ebouchut/learn-dev</url>
<licenses>
<!-- Open-source license -->
<license>
<name>GNU Affero General Public License v3.0</name>
<url>https://www.gnu.org/licenses/agpl-3.0.html</url>
<distribution>repo</distribution>
<comments>
Open-source license. You may use, modify, and distribute this software
under the terms of the AGPL v3. Any derivative work must also be
distributed under the same license.
</comments>
</license>
<!-- Commercial license -->
<license>
<name>Commercial License</name>
<url>https://github.com/ebouchut/learn-dev/blob/main/LICENSE-COMMERCIAL.md</url>
<distribution>manual</distribution>
<comments>
For commercial use without AGPL obligations. Contact ebouchut@gmail.com
to obtain a commercial license.
</comments>
</license>
</licenses>
<developers>
<developer>
<id>ebouchut</id>
<name>Eric Bouchut</name>
<email>ebouchut@gmail.com</email>
<url>https://github.com/ebouchut</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/ebouchut/learn-dev.git</connection>
<developerConnection>scm:git:git@github.com:ebouchut/learn-dev.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/ebouchut/learn-dev</url>
</scm>
<properties>
<java.version>21</java.version>
<spring-dotenv.version>5.1.0</spring-dotenv.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<jacoco-maven-plugin.version>0.8.15</jacoco-maven-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity6</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.paulschwarz</groupId>
<artifactId>springboot3-dotenv</artifactId>
</dependency>
<!-- Bean Validation for form-backing DTOs (e.g. RegisterForm) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- Testcontainers: real PostgreSQL for repository/integration tests -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-testcontainers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>me.paulschwarz</groupId>
<artifactId>spring-dotenv-bom</artifactId>
<version>${spring-dotenv.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</path>
</annotationProcessorPaths>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</path>
</annotationProcessorPaths>
</configuration>
</execution>
</executions>
</plugin>
<!--
Code quality (linting): Checkstyle with the project ruleset
(config/checkstyle/checkstyle.xml, the Google ruleset adapted
to 4-space indentation and IDE-managed import order).
Deliberately report-only for now: the report goal never fails the
build, and failOnViolation/failsOnError are off so an existing
codebase is not blocked on day one. Generate the report with:
./mvnw checkstyle:checkstyle (violations on the console,
XML report in target/checkstyle-result.xml)
Tighten later by switching CI to checkstyle:check and setting
failOnViolation to true.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>config/checkstyle/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>false</failsOnError>
<failOnViolation>false</failOnViolation>
</configuration>
</plugin>
<!--
Test coverage: JaCoCo.
prepare-agent instruments the JVM Surefire forks, and the report
is bound to the test phase so every `mvn test` run writes the
HTML and XML report to target/site/jacoco/.
-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<!-- Prevent .env file(s) with sensitive data (credentials...) from being packaged in an artifact! -->
<directory>src/main/resources</directory>
<excludes>
<exclude>**/.env</exclude>
<exclude>**/.env.*</exclude>
</excludes>
</resource>
</resources>
</build>
</project>