mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-21 20:18:01 +01:00
Update minotaur
This commit is contained in:
parent
e1c5f183ee
commit
4596389007
3 changed files with 8 additions and 8 deletions
2
.github/workflows/gradle-publish.yml
vendored
2
.github/workflows/gradle-publish.yml
vendored
|
@ -31,4 +31,4 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: publishModrinth
|
||||
arguments: modrinth
|
||||
|
|
12
build.gradle
12
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue