Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Added Spotless Maven Plugin (#34)
Browse files Browse the repository at this point in the history
* Added Spotless Maven Plugin version 1.27.0 with default import order
matching most existing Java projects.
  • Loading branch information
massdosage authored Feb 5, 2020
1 parent d0629b3 commit 9b9eacc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [4.3.0] - 2020-02-05
### Added
- Added [Spotless Maven Plugin](https://github.com/diffplug/spotless/tree/master/plugin-maven), version 1.27.0 with
default import order matching most existing Java projects.

## [4.2.0] - 2019-09-02
### Added
- Added `spotbugs-maven-plugin`, version 3.1.12.2.
Expand Down
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<coveralls.maven.plugin.version>4.3.0</coveralls.maven.plugin.version>
<failsafe.maven.plugin.version>2.22.0</failsafe.maven.plugin.version>
<findbugs.maven.plugin.version>3.0.5</findbugs.maven.plugin.version>
<spotless.maven.plugin.version>1.27.0</spotless.maven.plugin.version>
<spotbugs.maven.plugin.version>3.1.12.2</spotbugs.maven.plugin.version>
<hotels.oss.plugin.config.version>1.3.0</hotels.oss.plugin.config.version>
<jacoco.version>0.8.4</jacoco.version>
Expand Down Expand Up @@ -88,6 +89,27 @@

<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.maven.plugin.version}</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>apply</goal>
</goals>
</execution>
</executions>
<configuration>
<java>
<removeUnusedImports />
<importOrder>
<order>\#java,\#javax,\#org,\#,\#com,\#com.expedia,\#com.expediagroup,\#com.hotels,java,javax,org,,com,com.expedia,com.expediagroup,com.hotels</order>
</importOrder>
</java>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down

0 comments on commit 9b9eacc

Please sign in to comment.