File tree Expand file tree Collapse file tree
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ public final class GradleCompat {
2424 private GradleCompat () {}
2525
2626 @ Nullable public static String findOptionalProperty (Project project , String propertyName ) {
27- @ Nullable String value = project .getProviders ().gradleProperty (propertyName ).getOrNull ();
28- if (value != null ) {
29- return value ;
30- }
3127 ExtraPropertiesExtension extras = project .getExtensions ().getByType (ExtraPropertiesExtension .class );
3228 if (extras .has (propertyName )) {
3329 @ Nullable Object property = extras .get (propertyName );
@@ -39,7 +35,6 @@ private GradleCompat() {}
3935 }
4036
4137 public static boolean isPropertyPresent (Project project , String propertyName ) {
42- return project .getProviders ().gradleProperty (propertyName ).isPresent () ||
43- project .getExtensions ().getByType (ExtraPropertiesExtension .class ).has (propertyName );
38+ return project .getExtensions ().getByType (ExtraPropertiesExtension .class ).has (propertyName );
4439 }
4540}
You can’t perform that action at this time.
0 commit comments