|
9 | 9 | <name>jFairy</name> |
10 | 10 | <description>Java fake data generator</description> |
11 | 11 | <url>https://github.com/Devskiller/jfairy</url> |
| 12 | + <inceptionYear>2013</inceptionYear> |
12 | 13 |
|
13 | 14 | <licenses> |
14 | 15 | <license> |
|
74 | 75 |
|
75 | 76 | <properties> |
76 | 77 | <revision>0.8.3-SNAPSHOT</revision> |
77 | | - <maven.compiler.source>17</maven.compiler.source> |
78 | | - <maven.compiler.target>17</maven.compiler.target> |
| 78 | + |
| 79 | + <javaVersion>17</javaVersion> |
| 80 | + <maven.compiler.source>${javaVersion}</maven.compiler.source> |
| 81 | + <maven.compiler.target>${javaVersion}</maven.compiler.target> |
| 82 | + |
79 | 83 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
80 | 84 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 85 | + |
| 86 | + <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss z</maven.build.timestamp.format> |
| 87 | + |
| 88 | + <!-- Dependency versions (ordered by usage) --> |
| 89 | + <dep.snakeyaml-engine.version>2.3</dep.snakeyaml-engine.version> |
| 90 | + <dep.jspecify.version>1.0.0</dep.jspecify.version> |
| 91 | + <dep.slf4j.version>2.0.16</dep.slf4j.version> |
| 92 | + <dep.iban4j.version>3.2.3-RELEASE</dep.iban4j.version> |
| 93 | + <dep.commons-validator.version>1.7</dep.commons-validator.version> |
| 94 | + <dep.logback.version>1.5.16</dep.logback.version> |
| 95 | + <dep.spock.version>2.4-groovy-4.0</dep.spock.version> |
| 96 | + <dep.groovy.version>4.0.24</dep.groovy.version> |
| 97 | + <dep.byte-buddy.version>1.15.11</dep.byte-buddy.version> |
| 98 | + <dep.objenesis.version>3.4</dep.objenesis.version> |
| 99 | + <dep.junit-jupiter.version>5.14.3</dep.junit-jupiter.version> |
| 100 | + |
| 101 | + <!-- Plugin versions (ordered alphabetically) --> |
| 102 | + <dep.plugin.build-helper.version>3.6.1</dep.plugin.build-helper.version> |
| 103 | + <dep.plugin.central-publishing.version>0.10.0</dep.plugin.central-publishing.version> |
| 104 | + <dep.plugin.checkstyle.version>3.6.0</dep.plugin.checkstyle.version> |
| 105 | + <dep.plugin.compiler.version>3.15.0</dep.plugin.compiler.version> |
| 106 | + <dep.plugin.coveralls.version>4.3.0</dep.plugin.coveralls.version> |
| 107 | + <dep.plugin.deploy.version>3.1.4</dep.plugin.deploy.version> |
| 108 | + <dep.plugin.enforcer.version>3.6.2</dep.plugin.enforcer.version> |
| 109 | + <dep.plugin.error-prone.version>2.39.0</dep.plugin.error-prone.version> |
| 110 | + <dep.plugin.flatten.version>1.7.3</dep.plugin.flatten.version> |
| 111 | + <dep.plugin.gmavenplus.version>4.3.1</dep.plugin.gmavenplus.version> |
| 112 | + <dep.plugin.gpg.version>3.2.8</dep.plugin.gpg.version> |
| 113 | + <dep.plugin.jacoco.version>0.8.14</dep.plugin.jacoco.version> |
| 114 | + <dep.plugin.javadoc.version>3.12.0</dep.plugin.javadoc.version> |
| 115 | + <dep.plugin.jar.version>3.5.0</dep.plugin.jar.version> |
| 116 | + <dep.plugin.release.version>3.3.1</dep.plugin.release.version> |
| 117 | + <dep.plugin.resources.version>3.5.0</dep.plugin.resources.version> |
| 118 | + <dep.plugin.source.version>3.4.0</dep.plugin.source.version> |
| 119 | + <dep.plugin.surefire.version>3.5.5</dep.plugin.surefire.version> |
| 120 | + <dep.plugin.versions.version>2.21.0</dep.plugin.versions.version> |
81 | 121 | </properties> |
82 | 122 |
|
83 | 123 | <dependencies> |
84 | 124 | <dependency> |
85 | 125 | <groupId>org.snakeyaml</groupId> |
86 | 126 | <artifactId>snakeyaml-engine</artifactId> |
87 | | - <version>2.3</version> |
| 127 | + <version>${dep.snakeyaml-engine.version}</version> |
88 | 128 | </dependency> |
89 | 129 | <dependency> |
90 | 130 | <groupId>org.jspecify</groupId> |
91 | 131 | <artifactId>jspecify</artifactId> |
92 | | - <version>1.0.0</version> |
| 132 | + <version>${dep.jspecify.version}</version> |
93 | 133 | </dependency> |
94 | 134 | <dependency> |
95 | 135 | <groupId>org.slf4j</groupId> |
96 | 136 | <artifactId>slf4j-api</artifactId> |
97 | | - <version>2.0.16</version> |
| 137 | + <version>${dep.slf4j.version}</version> |
98 | 138 | </dependency> |
99 | 139 | <dependency> |
100 | 140 | <groupId>org.iban4j</groupId> |
101 | 141 | <artifactId>iban4j</artifactId> |
102 | | - <version>3.2.3-RELEASE</version> |
| 142 | + <version>${dep.iban4j.version}</version> |
103 | 143 | </dependency> |
104 | 144 | <dependency> |
105 | 145 | <groupId>commons-validator</groupId> |
106 | 146 | <artifactId>commons-validator</artifactId> |
107 | | - <version>1.7</version> |
| 147 | + <version>${dep.commons-validator.version}</version> |
108 | 148 | <scope>test</scope> |
109 | 149 | </dependency> |
110 | 150 | <dependency> |
111 | 151 | <groupId>ch.qos.logback</groupId> |
112 | 152 | <artifactId>logback-classic</artifactId> |
113 | | - <version>1.5.16</version> |
| 153 | + <version>${dep.logback.version}</version> |
114 | 154 | <scope>test</scope> |
115 | 155 | </dependency> |
116 | 156 | <dependency> |
117 | 157 | <groupId>org.spockframework</groupId> |
118 | 158 | <artifactId>spock-core</artifactId> |
119 | | - <version>2.4-groovy-4.0</version> |
| 159 | + <version>${dep.spock.version}</version> |
120 | 160 | <scope>test</scope> |
121 | 161 | </dependency> |
122 | 162 | <dependency> |
123 | 163 | <groupId>org.apache.groovy</groupId> |
124 | 164 | <artifactId>groovy</artifactId> |
125 | | - <version>4.0.24</version> |
| 165 | + <version>${dep.groovy.version}</version> |
126 | 166 | <scope>test</scope> |
127 | 167 | </dependency> |
128 | 168 | <dependency> |
129 | 169 | <groupId>net.bytebuddy</groupId> |
130 | 170 | <artifactId>byte-buddy</artifactId> |
131 | | - <version>1.15.11</version> |
| 171 | + <version>${dep.byte-buddy.version}</version> |
132 | 172 | <scope>test</scope> |
133 | 173 | </dependency> |
134 | 174 | <dependency> |
135 | 175 | <groupId>org.objenesis</groupId> |
136 | 176 | <artifactId>objenesis</artifactId> |
137 | | - <version>3.4</version> |
| 177 | + <version>${dep.objenesis.version}</version> |
138 | 178 | <scope>test</scope> |
139 | 179 | </dependency> |
140 | 180 | <dependency> |
141 | 181 | <groupId>org.junit.jupiter</groupId> |
142 | 182 | <artifactId>junit-jupiter</artifactId> |
143 | | - <version>5.14.3</version> |
| 183 | + <version>${dep.junit-jupiter.version}</version> |
144 | 184 | <scope>test</scope> |
145 | 185 | </dependency> |
146 | 186 | </dependencies> |
147 | 187 |
|
148 | | - |
149 | 188 | <build> |
| 189 | + |
| 190 | + <defaultGoal>clean verify</defaultGoal> |
| 191 | + |
150 | 192 | <plugins> |
151 | 193 | <plugin> |
152 | 194 | <groupId>org.apache.maven.plugins</groupId> |
153 | 195 | <artifactId>maven-resources-plugin</artifactId> |
154 | | - <version>3.3.1</version> |
| 196 | + <version>${dep.plugin.resources.version}</version> |
155 | 197 | </plugin> |
156 | 198 | <plugin> |
157 | 199 | <groupId>org.codehaus.mojo</groupId> |
158 | 200 | <artifactId>build-helper-maven-plugin</artifactId> |
159 | | - <version>3.6.1</version> |
| 201 | + <version>${dep.plugin.build-helper.version}</version> |
160 | 202 | <executions> |
161 | 203 | <execution> |
162 | 204 | <id>add-test-source</id> |
|
175 | 217 | <plugin> |
176 | 218 | <groupId>org.apache.maven.plugins</groupId> |
177 | 219 | <artifactId>maven-compiler-plugin</artifactId> |
178 | | - <version>3.13.0</version> |
| 220 | + <version>${dep.plugin.compiler.version}</version> |
179 | 221 | <configuration> |
180 | 222 | <fork>true</fork> |
181 | 223 | <compilerArgs> |
|
198 | 240 | <path> |
199 | 241 | <groupId>com.google.errorprone</groupId> |
200 | 242 | <artifactId>error_prone_core</artifactId> |
201 | | - <version>2.39.0</version> |
| 243 | + <version>${dep.plugin.error-prone.version}</version> |
202 | 244 | </path> |
203 | 245 | </annotationProcessorPaths> |
204 | 246 | </configuration> |
205 | 247 | </plugin> |
206 | 248 | <plugin> |
207 | 249 | <groupId>org.codehaus.gmavenplus</groupId> |
208 | 250 | <artifactId>gmavenplus-plugin</artifactId> |
209 | | - <version>4.2.0</version> |
| 251 | + <version>${dep.plugin.gmavenplus.version}</version> |
210 | 252 | <executions> |
211 | 253 | <execution> |
212 | 254 | <goals> |
|
225 | 267 | </testSources> |
226 | 268 | </configuration> |
227 | 269 | </plugin> |
| 270 | + |
| 271 | + <plugin> |
| 272 | + <groupId>org.apache.maven.plugins</groupId> |
| 273 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 274 | + <version>${dep.plugin.enforcer.version}</version> |
| 275 | + <configuration> |
| 276 | + <rules> |
| 277 | + |
| 278 | + <requireMavenVersion> |
| 279 | + <version>[3.9.0,)</version> |
| 280 | + </requireMavenVersion> |
| 281 | + <requireJavaVersion> |
| 282 | + <version>[${javaVersion},)</version> |
| 283 | + </requireJavaVersion> |
| 284 | + |
| 285 | + <requirePluginVersions> |
| 286 | + <message>Please always define Maven plugin versions</message> |
| 287 | + <banTimestamps>true</banTimestamps> |
| 288 | + |
| 289 | + <unCheckedPluginList> |
| 290 | + org.apache.maven.plugins:maven-clean-plugin, |
| 291 | + org.apache.maven.plugins:maven-dependency-plugin, |
| 292 | + org.apache.maven.plugins:maven-install-plugin, |
| 293 | + org.apache.maven.plugins:maven-site-plugin |
| 294 | + </unCheckedPluginList> |
| 295 | + </requirePluginVersions> |
| 296 | + </rules> |
| 297 | + </configuration> |
| 298 | + <executions> |
| 299 | + <execution> |
| 300 | + <id>default-enforce</id> |
| 301 | + <goals> |
| 302 | + <goal>enforce</goal> |
| 303 | + </goals> |
| 304 | + <phase>validate</phase> |
| 305 | + </execution> |
| 306 | + </executions> |
| 307 | + </plugin> |
| 308 | + |
228 | 309 | <plugin> |
229 | 310 | <groupId>org.apache.maven.plugins</groupId> |
230 | 311 | <artifactId>maven-checkstyle-plugin</artifactId> |
231 | | - <version>3.6.0</version> |
| 312 | + <version>${dep.plugin.checkstyle.version}</version> |
232 | 313 | <configuration> |
233 | 314 | <configLocation>google_checks.xml</configLocation> |
234 | 315 | <consoleOutput>true</consoleOutput> |
|
248 | 329 | </executions> |
249 | 330 | </plugin> |
250 | 331 | <plugin> |
| 332 | + <groupId>org.apache.maven.plugins</groupId> |
251 | 333 | <artifactId>maven-surefire-plugin</artifactId> |
252 | | - <version>3.5.5</version> |
| 334 | + <version>${dep.plugin.surefire.version}</version> |
253 | 335 | <configuration> |
254 | 336 | <includes> |
255 | 337 | <include>**/*Spec.java</include> |
|
260 | 342 | <plugin> |
261 | 343 | <groupId>org.eluder.coveralls</groupId> |
262 | 344 | <artifactId>coveralls-maven-plugin</artifactId> |
263 | | - <version>4.3.0</version> |
| 345 | + <version>${dep.plugin.coveralls.version}</version> |
264 | 346 | </plugin> |
265 | 347 | <plugin> |
266 | 348 | <groupId>org.jacoco</groupId> |
267 | 349 | <artifactId>jacoco-maven-plugin</artifactId> |
268 | | - <version>0.8.13</version> |
| 350 | + <version>${dep.plugin.jacoco.version}</version> |
269 | 351 | <executions> |
270 | 352 | <execution> |
271 | 353 | <id>prepare-agent</id> |
|
278 | 360 | <plugin> |
279 | 361 | <groupId>org.codehaus.mojo</groupId> |
280 | 362 | <artifactId>flatten-maven-plugin</artifactId> |
281 | | - <version>1.7.0</version> |
| 363 | + <version>${dep.plugin.flatten.version}</version> |
282 | 364 | <configuration> |
283 | 365 | <outputDirectory>${project.build.directory}</outputDirectory> |
284 | 366 | <updatePomFile>true</updatePomFile> |
|
301 | 383 | </execution> |
302 | 384 | </executions> |
303 | 385 | </plugin> |
| 386 | + <plugin> |
| 387 | + <groupId>org.apache.maven.plugins</groupId> |
| 388 | + <artifactId>maven-jar-plugin</artifactId> |
| 389 | + <version>${dep.plugin.jar.version}</version> |
| 390 | + <configuration> |
| 391 | + <archive> |
| 392 | + <addMavenDescriptor>false</addMavenDescriptor> |
| 393 | + <compress>true</compress> |
| 394 | + <index>false</index> |
| 395 | + <manifest> |
| 396 | + <addClasspath>false</addClasspath> |
| 397 | + <addDefaultEntries>true</addDefaultEntries> |
| 398 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <!-- Implementation-Title/Version/Vendor --> |
| 399 | + <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries> |
| 400 | + <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries> <!-- Build-Jdk, Build-Os, Build-Tool --> |
| 401 | + </manifest> |
| 402 | + |
| 403 | + <manifestEntries> |
| 404 | + <Build-Time>${maven.build.timestamp}</Build-Time> |
| 405 | + <Project-Url>${project.url}</Project-Url> |
| 406 | + <Project-Inception-Year>${project.inceptionYear}</Project-Inception-Year> |
| 407 | + </manifestEntries> |
| 408 | + </archive> |
| 409 | + </configuration> |
| 410 | + </plugin> |
304 | 411 | <plugin> |
305 | 412 | <groupId>org.apache.maven.plugins</groupId> |
306 | 413 | <artifactId>maven-deploy-plugin</artifactId> |
| 414 | + <version>${dep.plugin.deploy.version}</version> |
307 | 415 | <configuration> |
308 | 416 | <skip>true</skip> |
309 | 417 | </configuration> |
310 | 418 | </plugin> |
311 | 419 | <plugin> |
312 | 420 | <groupId>org.apache.maven.plugins</groupId> |
313 | 421 | <artifactId>maven-release-plugin</artifactId> |
| 422 | + <version>${dep.plugin.release.version}</version> |
314 | 423 | <configuration> |
315 | 424 | <releaseProfiles>release</releaseProfiles> |
316 | 425 | </configuration> |
317 | 426 | </plugin> |
| 427 | + <plugin> |
| 428 | + <groupId>org.codehaus.mojo</groupId> |
| 429 | + <artifactId>versions-maven-plugin</artifactId> |
| 430 | + <version>${dep.plugin.versions.version}</version> |
| 431 | + <configuration> |
| 432 | + <ruleSet> |
| 433 | + <ignoreVersions> |
| 434 | + <ignoreVersion> |
| 435 | + <type>regex</type> |
| 436 | + <version>.*(?i)(alpha|beta|rc|cr|preview|milestone|[mb][0-9]+).*</version> |
| 437 | + </ignoreVersion> |
| 438 | + </ignoreVersions> |
| 439 | + </ruleSet> |
| 440 | + </configuration> |
| 441 | + </plugin> |
318 | 442 | </plugins> |
319 | 443 | </build> |
320 | 444 |
|
321 | 445 | <profiles> |
| 446 | + <profile> |
| 447 | + <id>fast</id> |
| 448 | + <!-- profile to skip time-consuming steps --> |
| 449 | + <activation> |
| 450 | + <activeByDefault>false</activeByDefault> |
| 451 | + </activation> |
| 452 | + <properties> |
| 453 | + <!-- skip _compiling_ the tests --> |
| 454 | + <maven.test.skip>true</maven.test.skip> |
| 455 | + <!-- skip execution of tests --> |
| 456 | + <skipTests>true</skipTests> |
| 457 | + |
| 458 | + <maven.javadoc.skip>true</maven.javadoc.skip> |
| 459 | + </properties> |
| 460 | + </profile> |
| 461 | + |
322 | 462 | <profile> |
323 | 463 | <id>release</id> |
324 | 464 | <build> |
325 | 465 | <plugins> |
326 | 466 | <plugin> |
327 | 467 | <groupId>org.apache.maven.plugins</groupId> |
328 | 468 | <artifactId>maven-gpg-plugin</artifactId> |
329 | | - <version>3.2.8</version> |
| 469 | + <version>${dep.plugin.gpg.version}</version> |
330 | 470 | <executions> |
331 | 471 | <execution> |
332 | 472 | <id>sign-artifacts</id> |
|
340 | 480 | <plugin> |
341 | 481 | <groupId>org.apache.maven.plugins</groupId> |
342 | 482 | <artifactId>maven-source-plugin</artifactId> |
343 | | - <version>3.3.1</version> |
| 483 | + <version>${dep.plugin.source.version}</version> |
344 | 484 | <executions> |
345 | 485 | <execution> |
346 | 486 | <id>attach-sources</id> |
|
353 | 493 | <plugin> |
354 | 494 | <groupId>org.apache.maven.plugins</groupId> |
355 | 495 | <artifactId>maven-javadoc-plugin</artifactId> |
356 | | - <version>3.12.0</version> |
| 496 | + <version>${dep.plugin.javadoc.version}</version> |
357 | 497 | <configuration> |
358 | 498 | <doclint>none</doclint> |
359 | 499 | </configuration> |
|
366 | 506 | </execution> |
367 | 507 | </executions> |
368 | 508 | </plugin> |
369 | | - <plugin> |
| 509 | + <plugin> |
370 | 510 | <groupId>org.sonatype.central</groupId> |
371 | 511 | <artifactId>central-publishing-maven-plugin</artifactId> |
372 | | - <version>0.10.0</version> |
| 512 | + <version>${dep.plugin.central-publishing.version}</version> |
373 | 513 | <extensions>true</extensions> |
374 | 514 | <executions> |
375 | 515 | <execution> |
|
0 commit comments