added publishing

This commit is contained in:
lukasabbe
2026-01-20 23:51:45 +01:00
parent d64593e9c7
commit 5acac7ef56
2 changed files with 10 additions and 16 deletions
+9 -16
View File
@@ -1,6 +1,7 @@
plugins { plugins {
id 'fabric-loom' version '1.15-SNAPSHOT' id 'fabric-loom' version '1.15-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
} }
version = project.mod_version version = project.mod_version
@@ -69,20 +70,12 @@ jar {
} }
} }
// configure the maven publication modrinth {
publishing { token = System.getenv("MODRINTH_TOKEN")
publications { projectId = "zitKUUW9" // https://modrinth.com/mod/not-enough-pages
create("mavenJava", MavenPublication) { version = project.mod_version
artifactId = project.archives_base_name versionType = project.versionType
from components.java uploadFile = remapJar
} gameVersions = [project.minecraft_version]
} loaders = ["fabric"]
// 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.
}
} }
+1
View File
@@ -6,6 +6,7 @@ minecraft_version=1.21.11
loader_version=0.18.4 loader_version=0.18.4
# Mod Properties # Mod Properties
mod_version=1.0+1.21.1 mod_version=1.0+1.21.1
versionType=beta
maven_group=com.lukasabbe maven_group=com.lukasabbe
archives_base_name=NotEnoughPages archives_base_name=NotEnoughPages