|
14 | 14 | <enforced-maven-version>3.6.1</enforced-maven-version>
|
15 | 15 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
16 | 16 | <spotbugs-maven-plugin.version>4.0.0</spotbugs-maven-plugin.version>
|
17 |
| - <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
18 |
| - <maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version> |
19 |
| - <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version> |
20 |
| - <maven-source-plugin.version>3.2.0</maven-source-plugin.version> |
21 |
| - <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version> |
22 |
| - <fmt-maven-plugin.version>2.9</fmt-maven-plugin.version> |
23 |
| - <maven-scm-plugin.version>1.11.2</maven-scm-plugin.version> |
24 |
| - <maven-enforcer-plugin.version>3.0.0-M2</maven-enforcer-plugin.version> |
| 17 | + <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version> |
| 18 | + <maven-surefire-plugin.version>3.5.1</maven-surefire-plugin.version> |
| 19 | + <maven-javadoc-plugin.version>3.10.1</maven-javadoc-plugin.version> |
| 20 | + <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
| 21 | + <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> |
| 22 | + <spotless.version>2.43.0</spotless.version> |
| 23 | + <maven-scm-plugin.version>2.1.0</maven-scm-plugin.version> |
| 24 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
25 | 25 | <skipFormatPlugin>true</skipFormatPlugin>
|
26 |
| - <versions-maven-plugin.version>2.7</versions-maven-plugin.version> |
| 26 | + <versions-maven-plugin.version>2.17</versions-maven-plugin.version> |
27 | 27 | <!-- dependency versions -->
|
28 |
| - <slf4j.version>1.7.30</slf4j.version> |
| 28 | + <slf4j.version>2.0.16</slf4j.version> |
29 | 29 | <junit.version>4.13</junit.version>
|
| 30 | + <maven-release-plugin.version>3.0.0-M6</maven-release-plugin.version> |
| 31 | + <lombok.version>1.18.34</lombok.version> |
30 | 32 | </properties>
|
31 | 33 |
|
32 | 34 |
|
|
60 | 62 | <plugin>
|
61 | 63 | <groupId>org.apache.maven.plugins</groupId>
|
62 | 64 | <artifactId>maven-release-plugin</artifactId>
|
63 |
| - <version>3.0.0-M6</version> |
| 65 | + <version>${maven-release-plugin.version}</version> |
64 | 66 | <configuration>
|
65 | 67 | <checkModificationExcludes>
|
66 | 68 | <checkModificationExclude>pom.xml</checkModificationExclude>
|
|
93 | 95 | <artifactId>maven-compiler-plugin</artifactId>
|
94 | 96 | <version>${maven-compiler-plugin.version}</version>
|
95 | 97 | <configuration>
|
96 |
| - <source>1.8</source> |
97 |
| - <target>1.8</target> |
| 98 | + <source>11</source> |
| 99 | + <target>11</target> |
| 100 | + <release>11</release> |
| 101 | + <annotationProcessorPaths> |
| 102 | + <path> |
| 103 | + <groupId>org.projectlombok</groupId> |
| 104 | + <artifactId>lombok</artifactId> |
| 105 | + <version>${lombok.version}</version> |
| 106 | + </path> |
| 107 | + </annotationProcessorPaths> |
98 | 108 | </configuration>
|
| 109 | + |
99 | 110 | </plugin>
|
100 | 111 | <plugin>
|
101 | 112 | <groupId>org.apache.maven.plugins</groupId>
|
|
137 | 148 | </executions>
|
138 | 149 | </plugin>
|
139 | 150 | <plugin>
|
140 |
| - <groupId>com.coveo</groupId> |
141 |
| - <artifactId>fmt-maven-plugin</artifactId> |
142 |
| - <version>${fmt-maven-plugin.version}</version> |
143 |
| - <executions> |
144 |
| - <execution> |
145 |
| - <id>format</id> |
146 |
| - <goals> |
147 |
| - <goal>format</goal> |
148 |
| - </goals> |
149 |
| - </execution> |
150 |
| - </executions> |
| 151 | + <groupId>com.diffplug.spotless</groupId> |
| 152 | + <artifactId>spotless-maven-plugin</artifactId> |
| 153 | + <version>${spotless.version}</version> |
| 154 | + <configuration> |
| 155 | + <!-- optional: limit format enforcement to just the files changed by this feature branch --> |
| 156 | + <ratchetFrom>origin/main</ratchetFrom> |
| 157 | + <formats> |
| 158 | + <!-- you can define as many formats as you want, each is independent --> |
| 159 | + <format> |
| 160 | + <!-- define the files to apply to --> |
| 161 | + <includes> |
| 162 | + <include>.gitattributes</include> |
| 163 | + <include>.gitignore</include> |
| 164 | + </includes> |
| 165 | + <!-- define the steps to apply to those files --> |
| 166 | + <trimTrailingWhitespace/> |
| 167 | + <endWithNewline/> |
| 168 | + <indent> |
| 169 | + <tabs>true</tabs> |
| 170 | + <spacesPerTab>4</spacesPerTab> |
| 171 | + </indent> |
| 172 | + </format> |
| 173 | + </formats> |
| 174 | + <!-- define a language-specific format --> |
| 175 | + <java> |
| 176 | + <!-- no need to specify files, inferred automatically, but you can if you want --> |
| 177 | + |
| 178 | + <!-- apply a specific flavor of google-java-format and reflow long strings --> |
| 179 | + <googleJavaFormat> |
| 180 | + <version>1.8</version> |
| 181 | + <style>AOSP</style> |
| 182 | + <reflowLongStrings>true</reflowLongStrings> |
| 183 | + <formatJavadoc>false</formatJavadoc> |
| 184 | + </googleJavaFormat> |
| 185 | + |
| 186 | + <!-- make sure every file has the following copyright header. |
| 187 | + optionally, Spotless can set copyright years by digging |
| 188 | + through git history (see "license" section below) --> |
| 189 | + <licenseHeader> |
| 190 | + <content>/* (C)$YEAR */</content> <!-- or <file>${project.basedir}/license-header</file> --> |
| 191 | + </licenseHeader> |
| 192 | + </java> |
| 193 | + </configuration> |
151 | 194 | </plugin>
|
152 | 195 | <plugin>
|
153 | 196 | <groupId>org.apache.maven.plugins</groupId>
|
|
244 | 287 | <dependency>
|
245 | 288 | <groupId>org.projectlombok</groupId>
|
246 | 289 | <artifactId>lombok</artifactId>
|
247 |
| - <version>1.18.8</version> |
| 290 | + <version>${lombok.version}</version> |
248 | 291 | <scope>provided</scope>
|
249 | 292 | </dependency>
|
250 | 293 | <dependency>
|
|
0 commit comments