Skip to content

Commit 86fa62a

Browse files
committed
build(example): remove git-code-format-maven-plugin and related hooks from pom.xml
1 parent ee4c7c6 commit 86fa62a

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

example/pom.xml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -207,36 +207,6 @@
207207
</execution>
208208
</executions>
209209
</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>
240210
<plugin>
241211
<groupId>io.github.phillipuniverse</groupId>
242212
<artifactId>githook-maven-plugin</artifactId>
@@ -251,10 +221,6 @@
251221
<pre-commit>
252222
echo "Validating..."
253223
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
258224
</pre-commit>
259225
</hooks>
260226
</configuration>

0 commit comments

Comments
 (0)