Skip to content

Commit

Permalink
Update readmes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Mar 13, 2023
1 parent cdcfe14 commit 25fc723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions plugin-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ spotless {
java {
eclipse()
// optional: you can specify a specific version and/or config file
eclipse('4.17').configFile('eclipse-prefs.xml')
eclipse('4.26').configFile('eclipse-prefs.xml')
```


Expand Down Expand Up @@ -325,9 +325,8 @@ spotless {
groovy {
// Use the default version and Groovy-Eclipse default configuration
greclipse()
// optional: you can specify a specific version or config file(s)
// compatible versions: https://github.com/diffplug/spotless/tree/main/lib-extra/src/main/resources/com/diffplug/spotless/extra/groovy_eclipse_formatter
greclipse('2.3.0').configFile('spotless.eclipseformat.xml', 'org.codehaus.groovy.eclipse.ui.prefs')
// optional: you can specify a specific version or config file(s), version matches the Eclipse Platform
greclipse('4.26').configFile('spotless.eclipseformat.xml', 'org.codehaus.groovy.eclipse.ui.prefs')
```

Groovy-Eclipse formatting errors/warnings lead per default to a build failure. This behavior can be changed by adding the property/key value `ignoreFormatterProblems=true` to a configuration file. In this scenario, files causing problems, will not be modified by this formatter step.
Expand Down Expand Up @@ -993,7 +992,7 @@ spotless {
format 'xml', {
target 'src/**/*.xml' // must specify target
eclipseWtp('xml') // must specify a type (table below)
eclipseWtp('xml', '4.13.0') // optional version
eclipseWtp('xml', '11.0') // optional version, others at https://download.eclipse.org/tools/cdt/releases/
// you can also specify an arbitrary number of config files
eclipseWtp('xml').configFile('spotless.xml.prefs', 'spotless.common.properties'
}
Expand Down
6 changes: 3 additions & 3 deletions plugin-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ any other maven phase (i.e. compile) then it can be configured as below;

```xml
<eclipse>
<version>4.21.0</version> <!-- optional version of Eclipse Formatter -->
<version>4.26</version> <!-- optional version of Eclipse Formatter -->
<file>${project.basedir}/eclipse-formatter.xml</file> <!-- optional -->
</eclipse>
```
Expand Down Expand Up @@ -331,7 +331,7 @@ These mechanisms already exist for the Gradle plugin.

```xml
<greclipse>
<version>4.21.0</version> <!-- optional version of Eclipse Formatter -->
<version>4.26</version> <!-- optional version of Eclipse Formatter -->
<file>${project.basedir}/greclipse.properties</file> <!-- optional -->
</greclipse>
```
Expand Down Expand Up @@ -481,7 +481,7 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.

```xml
<eclipseCdt>
<version>4.21.0</version> <!-- optional version of Eclipse Formatter -->
<version>11.0</version> <!-- optional version of Eclipse Formatter, others at https://download.eclipse.org/tools/cdt/releases/ -->
<file>${project.basedir}/eclipse-cdt.xml</file> <!-- optional -->
</eclipseCdt>
```
Expand Down

0 comments on commit 25fc723

Please sign in to comment.