diff --git a/build.gradle b/build.gradle index 0a59f71..6aa5262 100644 --- a/build.gradle +++ b/build.gradle @@ -8,6 +8,7 @@ plugins { id 'fabric-loom' version '1.4-SNAPSHOT' id 'maven-publish' id 'com.matthewprenger.cursegradle' version '1.4.0' + id "com.modrinth.minotaur" version "2.+" } def ENV = System.getenv() @@ -110,8 +111,28 @@ curseforge { } } +modrinth { + if (ENV.MODRINTH_TOKEN) { + token = ENV.MODRINTH_TOKEN + } + projectId = "mo-glass" + versionName = "Mo Glass ${version}" + versionType = "release" + uploadFile = remapJar + additionalFiles = [ + file("${project.buildDir}/libs/${archivesBaseName}-${version}-sources.jar"), + file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar"), + file("${project.buildDir}/libs/${archivesBaseName}-${version}-sources-dev.jar") + ] + changelog = "A changelog can be found at: [https://www.wimods.net/mo-glass/mo-glass-1-6-1/](https://www.wimods.net/mo-glass/mo-glass-1-6-1/?mc=${project.minecraft_version}&utm_source=Modrinth&utm_medium=Mo+Glass&utm_campaign=Changelog&utm_content=Modrinth+Mo+Glass+MC${project.minecraft_version})" + dependencies { + required.version "fabric-api", project.fabric_version + } +} + afterEvaluate { tasks.curseforge353426.dependsOn moveDevLibs + tasks.modrinth.dependsOn moveDevLibs } task moveDevLibs(dependsOn: [remapJar, remapSourcesJar]) {