Skip to content

Commit

Permalink
Configure maven spotless plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Aug 18, 2021
1 parent bced216 commit 6075ddf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
14 changes: 14 additions & 0 deletions LICENSE.header
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2020 The Baremaps Authors
*
* 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.
*/

18 changes: 14 additions & 4 deletions pom.xml
Expand Up @@ -281,11 +281,21 @@
<version>${version.plugin.surefire}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.2</version>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.12.2</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
<java>
<googleJavaFormat>
<version>1.8</version>
<style>GOOGLE</style>
</googleJavaFormat>
<removeUnusedImports />
<licenseHeader>
<file>${maven.multiModuleProjectDirectory}/LICENSE.header</file>
</licenseHeader>
</java>
</configuration>
</plugin>
</plugins>
Expand All @@ -296,7 +306,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.1</version>
</plugin>
</plugins>
</reporting>
Expand Down

0 comments on commit 6075ddf

Please sign in to comment.