Do not apply Javaformat by default

* Do not apply javaformat by default

This commit removes the invocation of spring-javaformat:apply by
default. Doing so makes the validate goal irrelevant as apply is
going to reformat the code if necessary.

The idea of the plugin is that it should prevent you from pushing
something that has formatting violations. Running the build, run the
apply goal manually, and amending the commit is the idiomatic way of
using this plugin.

* Apply formatting
This commit is contained in:
Stéphane Nicoll
2022-02-22 20:29:20 +01:00
committed by GitHub
parent 79a0eea1ee
commit 0b802a60d9
2 changed files with 4 additions and 4 deletions

View File

@@ -384,7 +384,6 @@
<skip>${disable.checks}</skip>
</configuration>
<goals>
<goal>apply</goal>
<goal>validate</goal>
</goals>
</execution>

View File

@@ -117,9 +117,10 @@ public @interface Backoff {
boolean random() default false;
/**
* Evaluates to a value. In the exponential case ({@link #multiplier()} &gt; 0) set this to true to have the
* backoff delays randomized, so that the maximum delay is multiplier times the
* previous delay and the distribution is uniform between the two values.
* Evaluates to a value. In the exponential case ({@link #multiplier()} &gt; 0) set
* this to true to have the backoff delays randomized, so that the maximum delay is
* multiplier times the previous delay and the distribution is uniform between the two
* values.
* @return the flag to signal randomization is required (default false)
*/
String randomExpression() default "";