Skip to content

Commit

Permalink
use external profile to disable formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 authored and nevio18324 committed Oct 31, 2024
1 parent 38f7304 commit 2e1b1f5
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,17 +261,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.23.0</version>
<executions>
<execution>
<id>code-format</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -336,5 +325,23 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>no-formatter</id>
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.23.0</version>
<executions>
<execution>
<id>code-format</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 2e1b1f5

Please sign in to comment.