Skip to content

Commit 61aaf58

Browse files
committed
Bump plugin and update cache javadoc
* Bump formatter to latest release for current build * Update the javadoc for the cache to warn about changes a user might make that would invalidate any cache (re #453)
1 parent a83d47a commit 61aaf58

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
<plugin>
367367
<groupId>net.revelc.code.formatter</groupId>
368368
<artifactId>formatter-maven-plugin</artifactId>
369-
<version>2.13.0</version>
369+
<version>2.14.0</version>
370370
<configuration>
371371
<configFile>${project.basedir}/src/main/resources/formatter-maven-plugin/eclipse/java.xml</configFile>
372372
<configJsFile>${project.basedir}/src/main/resources/formatter-maven-plugin/eclipse/javascript.xml</configJsFile>

src/main/java/net/revelc/code/formatter/FormatterMojo.java

+5
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ public class FormatterMojo extends AbstractMojo implements ConfigurationSource {
136136
* survive clean phase when it should. This is not intended to be clean in that way as one would want as close to a
137137
* no-op as possible when files are already all formatted and/or have not been otherwise touched. This is used based
138138
* off the files in the project so it is as much part of the source as any other file is.
139+
*
140+
* <p>
141+
* The cache can become invalid for any number of reasons that this plugin can't reasonably detect automatically. If
142+
* you rely on the cache and make any changes to the project that could conceivably make the cache invalid, or if
143+
* you notice that files aren't being reformatted when they should, just delete the cache and it will be rebuilt.
139144
*
140145
* @since 2.12.1
141146
*/

0 commit comments

Comments
 (0)