Skip to content

Commit

Permalink
Update version and remove v2.7.0 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
triphora committed Mar 4, 2023
1 parent e2e9532 commit 3d5a1cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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!'
Expand Down
29 changes: 0 additions & 29 deletions src/main/java/com/modrinth/minotaur/Minotaur.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -26,29 +20,6 @@ public class Minotaur implements Plugin<Project> {
*/
@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 [email protected] 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.");

Expand Down

0 comments on commit 3d5a1cc

Please sign in to comment.