Skip to content

Commit

Permalink
Add Minotaur gradle plugin for Modrinth uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfa-ag committed Aug 4, 2023
1 parent 55106f0 commit 2039c4d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'net.minecraftforge.gradle' version '5.1.+'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
id 'net.darkhax.curseforgegradle' version '1.1.15'
id 'com.modrinth.minotaur' version '2.+'
}

version = mod_version
Expand Down Expand Up @@ -126,14 +127,26 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge)
apiToken = findProperty('curseForgeApiKey')

def mainFile = upload(237541, jar)
mainFile.releaseType = 'beta'
mainFile.releaseType = mod_release_type
mainFile.changelog = file('changelog.md')
mainFile.changelogType = 'markdown'
mainFile.addRequirement('patchouli')

def apiSrcFile = mainFile.withAdditionalFile(apiSrcJar)
}

modrinth {
token = findProperty('modrinthApiToken')
projectId = 'fenns_totemic'
versionType = mod_release_type
uploadFile = jar
changelog = file('changelog.md').text
dependencies {
required.project 'patchouli'
}
additionalFiles = [apiSrcJar]
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ forge_version=1.19.2-43.2.0
# Remember to change the dependency versions in src/main/resources/META-INF/mods.toml when changing this

mod_version=1.19.2-0.12.7
mod_release_type=beta

0 comments on commit 2039c4d

Please sign in to comment.