From 45f1400328b6f13f47ffd7bd23c2f42d26325359 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sun, 22 May 2022 13:56:30 -0300 Subject: [PATCH] update minotaur --- build.gradle | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 81f06e0..fc4517b 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ plugins { id "maven-publish" id "org.ajoberstar.grgit" version "3.1.1" id "com.matthewprenger.cursegradle" version "1.4.0" - id "com.modrinth.minotaur" version "1.1.0" + id "com.modrinth.minotaur" version "2.2.0" id "fabric-loom" version "0.11-SNAPSHOT" apply false id "com.github.ben-manes.versions" version "0.41.0" } @@ -202,23 +202,20 @@ curseforge { } } -task modrinth(type: TaskModrinthUpload, dependsOn: remapJar) { - onlyIf { - ENV.MODRINTH_TOKEN - } +modrinth { + token.set(ENV.MODRINTH_TOKEN) + projectId.set("YlKdE5VK") + versionType.set("alpha") + versionNumber.set(rootProject.version) + versionName.set(versionNameMsg) + changelog.set(changelogMsg) - token = ENV.MODRINTH_TOKEN - projectId = "YlKdE5VK" - releaseType = "alpha" - versionNumber = rootProject.version - versionName = versionNameMsg - changelog = changelogMsg + uploadFile.set(remapJar) - uploadFile = remapJar - - addGameVersion("1.19-pre1") - mcReleases.forEach { v -> addGameVersion(v) } - addLoader("fabric") + List mcs = new ArrayList<>(mcReleases) + mcs.add("1.19-pre1") + gameVersions.set(mcs) + loaders.set(["fabric"]) dependencies { optional.project "P7dR8mSH" // fabric api