Update minotaur

This commit is contained in:
Sollace 2022-06-15 01:12:30 +02:00
parent e1c5f183ee
commit 4596389007
3 changed files with 8 additions and 8 deletions

View file

@ -31,4 +31,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: eskatos/gradle-command-action@v1 uses: eskatos/gradle-command-action@v1
with: with:
arguments: publishModrinth arguments: modrinth

View file

@ -7,7 +7,7 @@ plugins {
id 'java-library' id 'java-library'
id 'fabric-loom' version '0.12-SNAPSHOT' id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish' 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' id 'org.ajoberstar.reckon' version '0.13.0'
} }
apply plugin: 'dex.plugins.outlet' apply plugin: 'dex.plugins.outlet'
@ -112,22 +112,22 @@ task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource from sourceSets.main.allSource
} }
import com.modrinth.minotaur.TaskModrinthUpload tasks.modrinth {
task publishModrinth (type: TaskModrinthUpload){
onlyIf { onlyIf {
def stage = version.version.stage.value def stage = version.version.stage.value
stage == null || stage.name != 'beta' stage == null || stage.name != 'beta'
} }
}
modrinth {
token = System.env.MODRINTH_KEY token = System.env.MODRINTH_KEY
projectId = project.modrinth_project_id projectId = project.modrinth_project_id
versionNumber = version.toString() versionNumber = version.toString()
versionName = archivesBaseName + '-' + version versionName = archivesBaseName + '-' + version
changelog = "[Changelog](https://github.com/MineLittlePony/MineLittlePony/releases/tag/${version.toString()})" changelog = "[Changelog](https://github.com/MineLittlePony/MineLittlePony/releases/tag/${version.toString()})"
uploadFile = jar.outputs.getFiles().asPath // This is the java jar task uploadFile = remapJar
addLoader(project.modrinth_loader_type)
outlet.mcVersions().each{ver -> outlet.mcVersions().each{ver ->
addGameVersion ver gameVersions.add ver
} }
} }

View file

@ -15,7 +15,7 @@ org.gradle.daemon=false
description=Mine Little Pony turns players and mobs into ponies. Press F9 ingame to access settings. description=Mine Little Pony turns players and mobs into ponies. Press F9 ingame to access settings.
# Publishing # Publishing
minecraft_version_range=>=1.19.0 minecraft_version_range=>=1.19
modrinth_loader_type=fabric modrinth_loader_type=fabric
modrinth_project_id=JBjInUXM modrinth_project_id=JBjInUXM