diff --git a/build.gradle b/build.gradle index 4e513b4..d68aa77 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'fabric-loom' version '1.6-SNAPSHOT' id 'maven-publish' + id 'com.modrinth.minotaur' version '2.+' } version = project.mod_version @@ -67,20 +68,12 @@ jar { } } -// configure the maven publication -publishing { - publications { - create("mavenJava", MavenPublication) { - artifactId = project.archives_base_name - from components.java - } - } - - // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. - repositories { - // Add repositories to publish to here. - // Notice: This block does NOT have the same function as the block in the top level. - // The repositories here will be used for publishing your artifact, not for - // retrieving dependencies. - } +modrinth { + token = "${System.getenv("MODRINTH_TOKEN")}" + projectId = "GFFrKk83" + versionNumber = project.mod_version + uploadFile = remapJar + gameVersions = [project.minecraft_version] + loaders = ["fabric"] + dependencies = [] }