Skip to content

Commit cb5bf77

Browse files
committedAug 25, 2023
Use spotless for code formatting
1 parent 6b816c1 commit cb5bf77

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
 

‎pom.xml

+52
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,58 @@
355355
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
356356
</configuration>
357357
</plugin>
358+
<plugin>
359+
<groupId>com.diffplug.spotless</groupId>
360+
<artifactId>spotless-maven-plugin</artifactId>
361+
<version>2.38.0</version>
362+
<configuration>
363+
<java>
364+
<toggleOffOn />
365+
<palantirJavaFormat>
366+
<version>2.35.0</version>
367+
</palantirJavaFormat>
368+
<importOrder>
369+
<order>java|javax,org,,\#</order>
370+
</importOrder>
371+
<removeUnusedImports />
372+
<licenseHeader>
373+
<content>/*
374+
* Copyright (C) 2009-2023 the original author(s).
375+
*
376+
* Licensed under the Apache License, Version 2.0 (the "License");
377+
* you may not use this file except in compliance with the License.
378+
* You may obtain a copy of the License at
379+
*
380+
* http://www.apache.org/licenses/LICENSE-2.0
381+
*
382+
* Unless required by applicable law or agreed to in writing, software
383+
* distributed under the License is distributed on an "AS IS" BASIS,
384+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
385+
* See the License for the specific language governing permissions and
386+
* limitations under the License.
387+
*/</content>
388+
</licenseHeader>
389+
</java>
390+
<pom>
391+
<sortPom>
392+
<expandEmptyElements>false</expandEmptyElements>
393+
<nrOfIndentSpace>4</nrOfIndentSpace>
394+
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
395+
</sortPom>
396+
</pom>
397+
<upToDateChecking>
398+
<enabled>true</enabled>
399+
</upToDateChecking>
400+
</configuration>
401+
<executions>
402+
<execution>
403+
<goals>
404+
<goal>apply</goal>
405+
</goals>
406+
<phase>process-sources</phase>
407+
</execution>
408+
</executions>
409+
</plugin>
358410
</plugins>
359411
</build>
360412

0 commit comments

Comments
 (0)
Please sign in to comment.