From 5acac7ef56560b8c4f257e394d10fb3b7526603b Mon Sep 17 00:00:00 2001 From: lukasabbe <67807954+lukasabbe@users.noreply.github.com> Date: Tue, 20 Jan 2026 23:51:45 +0100 Subject: [PATCH] added publishing --- build.gradle | 25 +++++++++---------------- gradle.properties | 1 + 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 0d95b47..a5d1c67 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'fabric-loom' version '1.15-SNAPSHOT' id 'maven-publish' + id "com.modrinth.minotaur" version "2.+" } version = project.mod_version @@ -69,20 +70,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 = "zitKUUW9" // https://modrinth.com/mod/not-enough-pages + version = project.mod_version + versionType = project.versionType + uploadFile = remapJar + gameVersions = [project.minecraft_version] + loaders = ["fabric"] } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index bbdcafb..d61b9f5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,6 +6,7 @@ minecraft_version=1.21.11 loader_version=0.18.4 # Mod Properties mod_version=1.0+1.21.1 +versionType=beta maven_group=com.lukasabbe archives_base_name=NotEnoughPages