Skip to content

Commit 25fc723

Browse files
committed
Update readmes.
1 parent cdcfe14 commit 25fc723

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

plugin-gradle/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ spotless {
213213
java {
214214
eclipse()
215215
// optional: you can specify a specific version and/or config file
216-
eclipse('4.17').configFile('eclipse-prefs.xml')
216+
eclipse('4.26').configFile('eclipse-prefs.xml')
217217
```
218218

219219

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

333332
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.
@@ -993,7 +992,7 @@ spotless {
993992
format 'xml', {
994993
target 'src/**/*.xml' // must specify target
995994
eclipseWtp('xml') // must specify a type (table below)
996-
eclipseWtp('xml', '4.13.0') // optional version
995+
eclipseWtp('xml', '11.0') // optional version, others at https://download.eclipse.org/tools/cdt/releases/
997996
// you can also specify an arbitrary number of config files
998997
eclipseWtp('xml').configFile('spotless.xml.prefs', 'spotless.common.properties'
999998
}

plugin-maven/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
237237

238238
```xml
239239
<eclipse>
240-
<version>4.21.0</version> <!-- optional version of Eclipse Formatter -->
240+
<version>4.26</version> <!-- optional version of Eclipse Formatter -->
241241
<file>${project.basedir}/eclipse-formatter.xml</file> <!-- optional -->
242242
</eclipse>
243243
```
@@ -331,7 +331,7 @@ These mechanisms already exist for the Gradle plugin.
331331

332332
```xml
333333
<greclipse>
334-
<version>4.21.0</version> <!-- optional version of Eclipse Formatter -->
334+
<version>4.26</version> <!-- optional version of Eclipse Formatter -->
335335
<file>${project.basedir}/greclipse.properties</file> <!-- optional -->
336336
</greclipse>
337337
```
@@ -481,7 +481,7 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.
481481

482482
```xml
483483
<eclipseCdt>
484-
<version>4.21.0</version> <!-- optional version of Eclipse Formatter -->
484+
<version>11.0</version> <!-- optional version of Eclipse Formatter, others at https://download.eclipse.org/tools/cdt/releases/ -->
485485
<file>${project.basedir}/eclipse-cdt.xml</file> <!-- optional -->
486486
</eclipseCdt>
487487
```

0 commit comments

Comments
 (0)