|
31 | 31 | <jib-maven.plugin.version>3.4.6</jib-maven.plugin.version> |
32 | 32 | <git-code-format-maven-plugin.version>5.4</git-code-format-maven-plugin.version> |
33 | 33 | <githook-maven-plugin.version>1.0.5</githook-maven-plugin.version> |
34 | | - <pitest-maven-plugin.version>1.20.5</pitest-maven-plugin.version> |
| 34 | + <pitest-maven-plugin.version>1.21.0</pitest-maven-plugin.version> |
35 | 35 | <pitest-junit5-plugin.version>1.2.3</pitest-junit5-plugin.version> |
36 | 36 | </properties> |
37 | 37 | <modules> |
|
207 | 207 | </execution> |
208 | 208 | </executions> |
209 | 209 | </plugin> |
210 | | - <plugin> |
211 | | - <groupId>com.cosium.code</groupId> |
212 | | - <artifactId>git-code-format-maven-plugin</artifactId> |
213 | | - <version>${git-code-format-maven-plugin.version}</version> |
214 | | - <executions> |
215 | | - <!-- On commit, format the modified java files --> |
216 | | - <execution> |
217 | | - <id>install-formatter-hook</id> |
218 | | - <goals> |
219 | | - <goal>install-hooks</goal> |
220 | | - </goals> |
221 | | - </execution> |
222 | | - <!-- On Maven verify phase, fail if any file |
223 | | - (including unmodified) is badly formatted --> |
224 | | - <execution> |
225 | | - <id>validate-code-format</id> |
226 | | - <goals> |
227 | | - <goal>validate-code-format</goal> |
228 | | - </goals> |
229 | | - </execution> |
230 | | - </executions> |
231 | | - <dependencies> |
232 | | - <!-- Enable https://github.com/google/google-java-format --> |
233 | | - <dependency> |
234 | | - <groupId>com.cosium.code</groupId> |
235 | | - <artifactId>google-java-format</artifactId> |
236 | | - <version>${git-code-format-maven-plugin.version}</version> |
237 | | - </dependency> |
238 | | - </dependencies> |
239 | | - </plugin> |
240 | 210 | <plugin> |
241 | 211 | <groupId>io.github.phillipuniverse</groupId> |
242 | 212 | <artifactId>githook-maven-plugin</artifactId> |
|
251 | 221 | <pre-commit> |
252 | 222 | echo "Validating..." |
253 | 223 | exec mvn test |
254 | | - echo "Formatting code..." |
255 | | - exec mvn git-code-format:format-code |
256 | | - echo "Validating format..." |
257 | | - exec mvn git-code-format:validate-code-format |
258 | 224 | </pre-commit> |
259 | 225 | </hooks> |
260 | 226 | </configuration> |
|
0 commit comments