|
1 | 1 | <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
2 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
3 | 3 |
|
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 |
|
|
44 | 44 | <maven.javadoc.skip>true</maven.javadoc.skip> |
45 | 45 | <maven.source.skip>true</maven.source.skip> |
46 | 46 | <gpg.skip>true</gpg.skip> |
| 47 | + <spotless.version>2.10.3</spotless.version> |
47 | 48 | </properties> |
48 | 49 |
|
49 | 50 | <repositories> |
|
102 | 103 | <artifactId>junit-jupiter-engine</artifactId> |
103 | 104 | <version>${junit.version}</version> |
104 | 105 | <scope>test</scope> |
105 | | - </dependency> |
106 | | - <dependency> |
107 | | - <groupId>org.openjdk.jmh</groupId> |
108 | | - <artifactId>jmh-core</artifactId> |
109 | | - <version>${jmh.version}</version> |
110 | | - <scope>test</scope> |
111 | | - </dependency> |
112 | | - <dependency> |
113 | | - <groupId>org.openjdk.jmh</groupId> |
114 | | - <artifactId>jmh-generator-annprocess</artifactId> |
115 | | - <version>${jmh.version}</version> |
| 106 | + </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>org.openjdk.jmh</groupId> |
| 109 | + <artifactId>jmh-core</artifactId> |
| 110 | + <version>${jmh.version}</version> |
| 111 | + <scope>test</scope> |
| 112 | + </dependency> |
| 113 | + <dependency> |
| 114 | + <groupId>org.openjdk.jmh</groupId> |
| 115 | + <artifactId>jmh-generator-annprocess</artifactId> |
| 116 | + <version>${jmh.version}</version> |
116 | 117 | <scope>test</scope> |
117 | | - </dependency> |
| 118 | + </dependency> |
118 | 119 | </dependencies> |
119 | 120 | </dependencyManagement> |
120 | 121 |
|
|
299 | 300 | <updateMatchingVersions>true</updateMatchingVersions> |
300 | 301 | </configuration> |
301 | 302 | </plugin> |
| 303 | + <plugin> |
| 304 | + <groupId>com.diffplug.spotless</groupId> |
| 305 | + <artifactId>spotless-maven-plugin</artifactId> |
| 306 | + <version>${spotless.version}</version> |
| 307 | + <configuration> |
| 308 | + <ratchetFrom>origin/master</ratchetFrom> |
| 309 | + |
| 310 | + <lineEndings/> |
| 311 | + <java> |
| 312 | + <googleJavaFormat/> |
| 313 | + |
| 314 | + <removeUnusedImports/> |
| 315 | + |
| 316 | + <licenseHeader> |
| 317 | + <file>./license-header</file> |
| 318 | + </licenseHeader> |
| 319 | + </java> |
| 320 | + </configuration> |
| 321 | + |
| 322 | + <executions> |
| 323 | + <execution> |
| 324 | + <!-- Runs in initialize phase to fail fast in case of formatting issues (should be before codegen).--> |
| 325 | + <id>spotless-check</id> |
| 326 | + <phase>initialize</phase> |
| 327 | + <goals> |
| 328 | + <goal>check</goal> |
| 329 | + </goals> |
| 330 | + </execution> |
| 331 | + </executions> |
| 332 | + </plugin> |
302 | 333 | </plugins> |
303 | 334 | <pluginManagement> |
304 | 335 | <plugins> |
|
0 commit comments