add modrinth publishing

This commit is contained in:
リキ萌え 2024-12-31 23:04:43 +01:00
parent 3f90d46028
commit 059eb8c1d9
2 changed files with 13 additions and 8 deletions

View file

@ -1,6 +1,7 @@
plugins { plugins {
id 'fabric-loom' version '1.9-SNAPSHOT' id 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
} }
version = project.mod_version version = project.mod_version
@ -74,15 +75,12 @@ java {
withSourcesJar() withSourcesJar()
} }
tasks { jar {
jar {
from("LICENSE") { from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" } rename { "${it}_${project.archivesBaseName}" }
} }
}
} }
// configure the maven publication // configure the maven publication
publishing { publishing {
publications { publications {
@ -100,3 +98,10 @@ publishing {
// retrieving dependencies. // retrieving dependencies.
} }
} }
modrinth {
projectId = "no-auto-iconify"
uploadFile = remapJar
gameVersions = ["1.21.4"]
loaders = ["fabric"]
}

View file

@ -6,7 +6,7 @@ minecraft_version=1.21.4
yarn_mappings=1.21.4+build.4 yarn_mappings=1.21.4+build.4
loader_version=0.16.9 loader_version=0.16.9
# Mod Properties # Mod Properties
mod_version=1.0-SNAPSHOT mod_version=1.0.0
maven_group=net.liquidev maven_group=net.liquidev
archives_base_name=NoAutoIconify archives_base_name=NoAutoIconify
# Dependencies # Dependencies