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 committed Nov 15, 2024
1 parent 7f1e78d commit e0f00e2
Show file tree
Hide file tree
Showing 2 changed files with 19 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 @@ -259,17 +259,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 @@ -302,5 +291,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>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<profiles>
<profile>build-for-docker</profile>
<profile>debug</profile>
<profile>no-formatter</profile>
</profiles>
</configuration>
</plugin>
Expand Down

0 comments on commit e0f00e2

Please sign in to comment.