Skip to content

Commit bc01942

Browse files
committed
Turn off the error message for requiring a certain version to use a custom step, let CI tell us how it goes.
1 parent 9c9cac0 commit bc01942

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

plugin-gradle/src/main/java/com/diffplug/gradle/spotless/FormatExtension.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,6 @@ private void readObject(java.io.ObjectInputStream stream) throws java.io.IOExcep
487487
*/
488488
public void custom(String name, FormatterFunc formatter) {
489489
requireNonNull(formatter, "formatter");
490-
if (badSemverOfGradle() < badSemver(SpotlessPlugin.VER_GRADLE_minVersionForCustom)) {
491-
throw new GradleException("The 'custom' method is only available if you are using Gradle "
492-
+ SpotlessPlugin.VER_GRADLE_minVersionForCustom
493-
+ " or newer, this is "
494-
+ GradleVersion.current().getVersion());
495-
}
496490
addStep(FormatterStep.createLazy(name, () -> globalState, SerializedFunction.alwaysReturns(formatter)));
497491
}
498492

0 commit comments

Comments
 (0)