From 4596389007f9e20b4bdc71b69951799a8623b332 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 15 Jun 2022 01:12:30 +0200 Subject: [PATCH] Update minotaur --- .github/workflows/gradle-publish.yml | 2 +- build.gradle | 12 ++++++------ gradle.properties | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 5f8dcccc..affc7d7f 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -31,4 +31,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} uses: eskatos/gradle-command-action@v1 with: - arguments: publishModrinth + arguments: modrinth diff --git a/build.gradle b/build.gradle index 7d97459f..95e013c3 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { id 'java-library' id 'fabric-loom' version '0.12-SNAPSHOT' id 'maven-publish' - id 'com.modrinth.minotaur' version '1.1.0' + id 'com.modrinth.minotaur' version '2.+' id 'org.ajoberstar.reckon' version '0.13.0' } apply plugin: 'dex.plugins.outlet' @@ -112,22 +112,22 @@ task sourcesJar(type: Jar, dependsOn: classes) { from sourceSets.main.allSource } -import com.modrinth.minotaur.TaskModrinthUpload -task publishModrinth (type: TaskModrinthUpload){ +tasks.modrinth { onlyIf { def stage = version.version.stage.value stage == null || stage.name != 'beta' } +} +modrinth { token = System.env.MODRINTH_KEY projectId = project.modrinth_project_id versionNumber = version.toString() versionName = archivesBaseName + '-' + version changelog = "[Changelog](https://github.com/MineLittlePony/MineLittlePony/releases/tag/${version.toString()})" - uploadFile = jar.outputs.getFiles().asPath // This is the java jar task - addLoader(project.modrinth_loader_type) + uploadFile = remapJar outlet.mcVersions().each{ver -> - addGameVersion ver + gameVersions.add ver } } diff --git a/gradle.properties b/gradle.properties index 4acdd640..17ca9f8e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ org.gradle.daemon=false description=Mine Little Pony turns players and mobs into ponies. Press F9 ingame to access settings. # Publishing - minecraft_version_range=>=1.19.0 + minecraft_version_range=>=1.19 modrinth_loader_type=fabric modrinth_project_id=JBjInUXM