You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by bm...@apache.org on 2023/01/13 20:17:02 UTC
[maven-wrapper] 01/01: [BUILD] add prettier config for shell
This is an automated email from the ASF dual-hosted git repository.
bmarwell pushed a commit to branch build_spotless_prettier_shell
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git
commit 5b3d44abebe02ae37a14b4d5c9c1b71d39c8f838
Author: Benjamin Marwell <bm...@apache.org>
AuthorDate: Fri Jan 13 21:16:43 2023 +0100
[BUILD] add prettier config for shell
Signed-off-by: Benjamin Marwell <bm...@apache.org>
---
pom.xml | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/pom.xml b/pom.xml
index 589c5bd..79690e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,44 @@ 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>