Skip to content

Commit

Permalink
Merge pull request #398 from diffplug/issue_393
Browse files Browse the repository at this point in the history
Improved Java Eclipse formatter documentation.
  • Loading branch information
nedtwigg authored May 6, 2019
2 parents 9069a06 + dff9082 commit ed4a02b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugin-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ By default, all files matching `src/main/java/**/*.java` and `src/test/java/**/*
<file>${basedir}/license-header</file>
</licenseHeader>
<eclipse>
<file>${basedir}/eclipse-fmt.xml</file>
<!-- Optional, otherwise Eclipse defaults are used. Eclipse preference or property files are also supported. -->
<file>${basedir}/eclipse-format.xml</file>
<!-- Optional, available versions: https://github.com/diffplug/spotless/tree/master/lib-extra/src/main/resources/com/diffplug/spotless/extra/config/eclipse_jdt_formatter -->
<version>4.7.1</version>
</eclipse>
Expand All @@ -111,12 +112,14 @@ By default, all files matching `src/main/java/**/*.java` and `src/test/java/**/*
<importOrder>
<!-- Specify either order or file, but not both -->
<order>java,javax,org,com,com.diffplug,</order>
<file>${basedir}/importOrder</file>
<file>${basedir}/eclipse.importorder</file>
</importOrder>
</java>
</configuration>
```

See [ECLIPSE_SCREENSHOTS](../ECLIPSE_SCREENSHOTS.md) for screenshots that demonstrate how to get and install the Eclipse format configuration file and Eclipse import order file mentioned above.

<a name="scala"></a>

## Applying to Scala source
Expand Down

0 comments on commit ed4a02b

Please sign in to comment.