Skip to content

Commit

Permalink
Add spotless plugin for formatting
Browse files Browse the repository at this point in the history
commit-id:295e57c2
  • Loading branch information
tylerwowen committed Mar 2, 2024
1 parent 2fa0869 commit cae348e
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions deploy-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<micrometer.version>1.11.3</micrometer.version>
<dropwizard.version>2.1.11</dropwizard.version>
<junit-jupiter.version>5.10.1</junit-jupiter.version>
<googleJavaFormat.version>1.7</googleJavaFormat.version>
<spotless.version>2.30.0</spotless.version>
</properties>

<modules>
Expand Down Expand Up @@ -56,14 +58,16 @@
</dependencyManagement>

<dependencies>
<!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
<!--JUnit
Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API -->
<!--JUnit
Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API -->
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
Expand Down Expand Up @@ -129,14 +133,59 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.1</version>
</plugin>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<ratchetFrom>origin/master</ratchetFrom>
<java>
<googleJavaFormat>
<version>${googleJavaFormat.version}</version>
<style>AOSP</style> <!-- AOSP is almost the same as the GOOGLE style but uses 4 spaces for indentation. -->
</googleJavaFormat>
<importOrder />
<removeUnusedImports />
<licenseHeader>
<content>
<![CDATA[
/**
* Copyright (c) $YEAR Pinterest, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
]]>
</content>
<delimiter>package</delimiter>
</licenseHeader>
</java>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit cae348e

Please sign in to comment.