From 5857898f75535a114303f1afec1e129241adb65a Mon Sep 17 00:00:00 2001 From: Kyle Moore Date: Thu, 1 Apr 2021 19:39:24 -0700 Subject: [PATCH] Remove deprecated methods; avoids Gradle version bump [skip ci] --- .../com/linkedin/pegasus/gradle/PegasusPlugin.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gradle-plugins/src/main/java/com/linkedin/pegasus/gradle/PegasusPlugin.java b/gradle-plugins/src/main/java/com/linkedin/pegasus/gradle/PegasusPlugin.java index 5a15147c2b..826e64ba23 100644 --- a/gradle-plugins/src/main/java/com/linkedin/pegasus/gradle/PegasusPlugin.java +++ b/gradle-plugins/src/main/java/com/linkedin/pegasus/gradle/PegasusPlugin.java @@ -76,7 +76,6 @@ import org.gradle.plugins.ide.eclipse.model.EclipseModel; import org.gradle.plugins.ide.idea.IdeaPlugin; import org.gradle.plugins.ide.idea.model.IdeaModule; -import org.gradle.util.GradleVersion; /** @@ -634,11 +633,6 @@ public void setJavadocJarTask(Task javadocJarTask) @Override public void apply(Project project) { - if (!isAtLeastGradle54()) - { - throw new GradleException("The pegasus plugin requires Gradle 5.4 or higher; please upgrade."); - } - project.getPlugins().apply(JavaPlugin.class); project.getPlugins().apply(IdeaPlugin.class); project.getPlugins().apply(EclipsePlugin.class); @@ -2231,8 +2225,4 @@ private Task publishPegasusSchemaSnapshot(Project project, SourceSet sourceSet, task.onlyIf(t -> !SharedFileUtils.getSuffixedFiles(project, inputDir, PDL_FILE_SUFFIX).isEmpty()); }); } - protected static boolean isAtLeastGradle54() { - return GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version("5.4")) >= 0; - } - }