Skip to content

Commit

Permalink
Update Minotaur
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Mar 28, 2023
1 parent e96ee5e commit ac223b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import com.modrinth.minotaur.TaskModrinthUpload


plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'com.matthewprenger.cursegradle' version '1.4.0'
id "com.modrinth.minotaur" version "1.1.0"
id "com.modrinth.minotaur" version "2.+"
id 'maven-publish'
id 'java'
}
Expand Down Expand Up @@ -134,20 +131,23 @@ curseforge {
}
}

task modrinth(type: TaskModrinthUpload, dependsOn: remapJar) {
tasks.modrinth {
onlyIf {
ENV.MODRINTH_TOKEN
}
}

modrinth {
token = ENV.MODRINTH_TOKEN
projectId = "PfKYAJGk"
versionNumber = version
versionName = "[${project.minecraft_version}] GolfIV ${version}"
releaseType = "release"
versionType = "release"
changelog = ENV.CHANGELOG ?: "A changelog can be found at https://github.com/samolego/GolfIV/releases/tag/${version}"

uploadFile = file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")

addGameVersion("${project.minecraft_version}")
addLoader('fabric')
gameVersions = [project.minecraft_version]
loaders = ['fabric', 'quilt']
}

0 comments on commit ac223b2

Please sign in to comment.