-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
272 lines (236 loc) · 8.8 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
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
267
268
269
270
271
272
<?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.3.4</version>
<relativePath />
<!-- lookup parent from repository -->
</parent>
<groupId>eu.solven.kumite</groupId>
<artifactId>aggregator</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>aggregator</name>
<modules>
<!-- Technical tools used through the appliction -->
<module>tools</module>
<!-- Resources shared between the server and the players -->
<module>public</module>
<!-- The Javascript resource of the Contest server -->
<module>js</module>
<!-- What's refer to access_token and refresh_token -->
<module>authorization</module>
<!-- The contest domain-specific code-->
<module>contest-core</module>
<!-- Host the contests, and serves the API -->
<module>server</module>
<!-- Enables boards updates through WebSocket -->
<module>websocket</module>
<!-- Demonstrate how to list and play contest -->
<module>player</module>
<!-- Starts a server and a player in the same JVM -->
<module>monolith</module>
<!-- Use Redis as persistence layer -->
<module>redis</module>
</modules>
<properties>
<java.version>21</java.version>
<spotless.version>2.44.0.BETA2</spotless.version>
<cleanthat.version>2.21</cleanthat.version>
<!-- By default (i.e. in local environments), check for code formatting AFTER trying automatic fixes. -->
<!-- We suppose the developper would see the fixed and include them in his commit. -->
<!-- In the CI, we check BEFORE automatic fixes as the CI should report early invalid code -->
<staticChecks>process-sources</staticChecks>
<!-- SpotBugs works on bytecode, hence require compilation to be done -->
<!-- http://maven.apache.org/ref/3.8.1/maven-core/lifecycles.html -->
<!-- https://github.com/spotbugs/spotbugs-maven-plugin/issues/75 -->
<staticChecksOverBytecode>process-classes</staticChecksOverBytecode>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<!-- mvn com.diffplug.spotless:spotless-maven-plugin:apply -->
<!-- mvn com.diffplug.spotless:spotless-maven-plugin:check -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<ratchetFrom>origin/master</ratchetFrom>
<formats>
<!-- you can define as many formats as you want, each is independent -->
<format>
<!-- define the files to apply to -->
<includes>
<include>.gitattributes</include>
<include>.gitignore</include>
</includes>
<!-- define the steps to apply to those files -->
<trimTrailingWhitespace />
<endWithNewline />
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<pom>
<includes>
<include>pom.xml</include>
</includes>
<!-- https://github.com/diffplug/spotless/tree/main/plugin-maven#sortpom -->
<sortPom>
<!-- We like empty elements, while plugin default configuration would expand them -->
<expandEmptyElements>false</expandEmptyElements>
<!-- https://github.com/Ekryd/sortpom/issues/75 -->
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
<!-- https://github.com/Ekryd/sortpom/wiki/Parameters#for-both-the-sort-and-verify-goal -->
<!-- -1 means '\t' -->
<nrOfIndentSpace>-1</nrOfIndentSpace>
</sortPom>
</pom>
<markdown>
<endWithNewline />
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
<includes>
<include>*.md</include>
<include>src/**/*.md</include>
</includes>
<flexmark />
</markdown>
<java>
<cleanthat>
<version>${cleanthat.version}</version>
<sourceJdk>${maven.compiler.source}</sourceJdk>
<mutators>
<mutator>SafeAndConsensual</mutator>
<mutator>SafeButNotConsensual</mutator>
<mutator>SafeButControversial</mutator>
<mutator>Guava</mutator>
</mutators>
<excludedMutators>
<!-- PMD recommends not using `var` -->
<excludedMutator>LocalVariableTypeInference</excludedMutator>
<!-- Small texts are often easier to read with `\r\n` than in a text block -->
<excludedMutator>UseTextBlocks</excludedMutator>
</excludedMutators>
<includeDraft>true</includeDraft>
</cleanthat>
<removeUnusedImports>
<engine>cleanthat-javaparser-unnecessaryimport</engine>
</removeUnusedImports>
<importOrder>
<file>${maven.multiModuleProjectDirectory}/build-tools/src/main/resources/style/eclipse.importorder</file>
<!--order>java,javax,org,com</order-->
</importOrder>
<eclipse>
<!-- From Pepper -->
<file>${maven.multiModuleProjectDirectory}/build-tools/src/main/resources/style/eclipse_java_code_formatter.xml</file>
</eclipse>
</java>
<json>
<includes>
<include>*.json</include>
<include>src/**/*.json</include>
</includes>
<excludes>
<exclude>package-lock.json</exclude>
</excludes>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
<gson>
<sortByKeys>true</sortByKeys>
</gson>
</json>
<!-- yaml formatting is disabled as it drops comments -->
<!-- <yaml>-->
<!-- <includes>-->
<!-- <include>src/**/*.yaml</include>-->
<!-- <include>src/**/*.yml</include>-->
<!-- </includes>-->
<!-- <jackson>-->
<!-- <yamlFeatures>-->
<!-- <WRITE_DOC_START_MARKER>false</WRITE_DOC_START_MARKER>-->
<!-- <MINIMIZE_QUOTES>true</MINIMIZE_QUOTES>-->
<!-- </yamlFeatures>-->
<!-- </jackson>-->
<!-- </yaml>-->
<javascript>
<includes>
<!-- Do not include HTML and Vue files -->
<!-- https://biomejs.dev/internals/language-support/#html-super-languages-support -->
<include>src/**/*.js</include>
</includes>
<!-- https://biomejs.dev/ -->
<biome>
<!-- Download Biome from the network if not already downloaded, see below for more info -->
<version>1.8.3</version>
<!-- (optional) Path to the directory with the biome.json config file -->
<configPath>${maven.multiModuleProjectDirectory}/build-tools/src/main/resources/style/</configPath>
<!-- (optional) Biome will auto detect the language based on the file extension. -->
<!-- See below for possible values. -->
<!-- <language>js</language>-->
</biome>
</javascript>
</configuration>
<executions>
<!-- https://github.com/diffplug/spotless/tree/main/plugin-maven#binding-to-maven-phase -->
<execution>
<id>apply</id>
<goals>
<goal>apply</goal>
</goals>
<!-- runs at process-sources phase by default -->
<phase>process-sources</phase>
</execution>
<execution>
<id>check</id>
<goals>
<goal>check</goal>
<!-- runs at verify phase by default -->
</goals>
<phase>${staticChecks}</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
<skip>${maven.gitcommitid.skip}</skip>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>