Skip to content

Instantly share code, notes, and snippets.

@triphora
Created December 20, 2022 23:22
Show Gist options
  • Save triphora/f5bf6ed53b49bd92b512ba874934091f to your computer and use it in GitHub Desktop.
Save triphora/f5bf6ed53b49bd92b512ba874934091f to your computer and use it in GitHub Desktop.
Before and after of Minotaur v2 buildscript
modrinth {
projectId = 'AABBCCDD'
versionName = "[$project.minecraft_version] Mod Name $project.version"
releaseType = 'alpha'
changelog = project.changelog
uploadFile = remapJar
gameVersions = ['1.18', '1.18.1', '1.18.2']
loaders = ['fabric']
dependencies = [
new ModDependency('P7dR8mSH', 'required') // Creates a new required dependency on Fabric API
]
}
task publishModrinth(type: com.modrinth.minotaur.TaskModrinthUpload) {
onlyIf {
System.getenv().MODRINTH_TOKEN
}
token = System.getenv().MODRINTH_TOKEN
projectId = 'AABBCCDD'
versionNumber = version
versionName = "[$project.minecraft_version] Mod Name $project.version"
releaseType = 'alpha'
changelog = project.changelog
uploadFile = remapJar
addGameVersion('1.18')
addGameVersion('1.18.1')
addGameVersion('1.18.2')
addLoader('fabric')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment