From 3d5a1cc72d9aee7b9cc4af142ec0bf2106928cda Mon Sep 17 00:00:00 2001 From: Emma Triphora Date: Fri, 3 Mar 2023 21:28:59 -0500 Subject: [PATCH] Update version and remove v2.7.0 warning --- build.gradle | 2 +- .../java/com/modrinth/minotaur/Minotaur.java | 29 ------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/build.gradle b/build.gradle index 7ac7336..025f4c4 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'com.gradle.plugin-publish' version '1.1.0' } -version = '2.7.2' +version = '2.7.3' group = 'com.modrinth.minotaur' archivesBaseName = 'Minotaur' description = 'Modrinth plugin for publishing builds to the website!' diff --git a/src/main/java/com/modrinth/minotaur/Minotaur.java b/src/main/java/com/modrinth/minotaur/Minotaur.java index 0378dc1..df34016 100644 --- a/src/main/java/com/modrinth/minotaur/Minotaur.java +++ b/src/main/java/com/modrinth/minotaur/Minotaur.java @@ -2,16 +2,10 @@ import org.gradle.api.Plugin; import org.gradle.api.Project; -import org.gradle.api.UncheckedIOException; import org.gradle.api.tasks.TaskContainer; import org.gradle.api.tasks.TaskProvider; import org.gradle.api.tasks.bundling.AbstractArchiveTask; -import java.io.File; -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; - import static com.modrinth.minotaur.Util.ext; /** @@ -26,29 +20,6 @@ public class Minotaur implements Plugin { */ @Override public void apply(final Project project) { - Path path = project.getRootProject().getProjectDir().toPath().resolve(".gradle").resolve("minotaur"); - if (Files.notExists(path)) { - try { - Files.createDirectories(path); - } catch (IOException e) { - throw new UncheckedIOException("Could not create path at " + path.toAbsolutePath(), e); - } - } - File warningFile = path.resolve("2.7.0-warning-shown").toFile(); - if (!warningFile.exists()) { - project.getLogger().warn("\n[Minotaur Warning] You are running a version of Minotaur that may contain " + - "unintentional breaking changes.\n[Minotaur Warning] If a build of yours worked in v2.6.0 but broke in " + - "v2.7.0, PLEASE report this immediately either via emailing support@modrinth.com or by opening a GitHub " + - "issue on https://github.com/modrinth/minotaur/issues.\n[Minotaur Warning] This warning will not be " + - "shown again.\n"); - try { - //noinspection ResultOfMethodCallIgnored - warningFile.createNewFile(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } - } - project.getExtensions().create("modrinth", ModrinthExtension.class, project); project.getLogger().debug("Created the `modrinth` extension.");