Skip to content

Commit

Permalink
[MWRAPPER-104] move spotless to pluginManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell committed Feb 2, 2024
1 parent 732c014 commit 2099cd3
Showing 1 changed file with 42 additions and 38 deletions.
80 changes: 42 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,48 @@ under the License.
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<formats>
<format>
<includes>
<include>src/**/*.sh</include>
<include>src/**/mvnw</include>
<include>src/**/mvnwDebug</include>
<include>src/**/only-mvnw</include>
<include>src/**/only-mvnwDebug</include>
</includes>

<prettier>
<devDependencyProperties>
<property>
<name>prettier</name>
<value>2.8.2</value>
</property>
<property>
<name>prettier-plugin-sh</name>
<value>0.12.8</value>
</property>
</devDependencyProperties>
<config>
<parser>sh</parser>
<useTabs>false</useTabs>
<tabWidth>2</tabWidth>
<switchCaseIndent>false</switchCaseIndent>
<spaceRedirects>false</spaceRedirects>
</config>
</prettier>
</format>
</formats>
</configuration>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
Expand All @@ -77,44 +119,6 @@ under the License.
<tagNameFormat>maven-wrapper-@{project.version}</tagNameFormat>
</configuration>
</plugin>

<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<formats>
<format>
<includes>
<include>src/**/*.sh</include>
<include>src/**/mvnw</include>
<include>src/**/mvnwDebug</include>
<include>src/**/only-mvnw</include>
<include>src/**/only-mvnwDebug</include>
</includes>

<prettier>
<devDependencyProperties>
<property>
<name>prettier</name>
<value>2.8.2</value>
</property>
<property>
<name>prettier-plugin-sh</name>
<value>0.12.8</value>
</property>
</devDependencyProperties>
<config>
<parser>sh</parser>
<useTabs>false</useTabs>
<tabWidth>2</tabWidth>
<switchCaseIndent>false</switchCaseIndent>
<spaceRedirects>false</spaceRedirects>
</config>
</prettier>
</format>
</formats>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 2099cd3

Please sign in to comment.