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 {
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"]
}
+1
View File
@@ -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