-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update version and remove v2.7.0 warning
- Loading branch information
Showing
2 changed files
with
1 addition
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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<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."); | ||
|
||
|