File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments