mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
add mod publishing gradle task
This commit is contained in:
@@ -5,4 +5,6 @@ plugins {
|
||||
id 'net.neoforged.moddev' version '2.0.1-beta' apply false
|
||||
// see https://files.minecraftforge.net/net/minecraftforge/gradle/ForgeGradle/ for new versions
|
||||
id 'net.minecraftforge.gradle' version '6.0.26' apply false
|
||||
|
||||
id "me.modmuss50.mod-publish-plugin" version "0.6.3" apply false
|
||||
}
|
||||
|
||||
35
buildSrc/src/main/groovy/multiloader-publish.gradle
Normal file
35
buildSrc/src/main/groovy/multiloader-publish.gradle
Normal file
@@ -0,0 +1,35 @@
|
||||
plugins {
|
||||
id "me.modmuss50.mod-publish-plugin"
|
||||
}
|
||||
|
||||
publishMods {
|
||||
if (project.name == 'fabric')
|
||||
file = remapJar.archiveFile
|
||||
else
|
||||
file = jar.archiveFile
|
||||
|
||||
modLoaders.add(project.name)
|
||||
type = STABLE
|
||||
version = project.version
|
||||
displayName = "[${project.name.capitalize()}] ${mod_name} ${mod_version}"
|
||||
changelog = rootProject.file('CHANGELOG_LATEST.md').text
|
||||
|
||||
curseforge {
|
||||
projectId = curseforge_id
|
||||
|
||||
dryRun = providers.environmentVariable("CURSEFORGE_API_KEY").getOrNull() == null
|
||||
accessToken = providers.environmentVariable("CURSEFORGE_API_KEY")
|
||||
|
||||
minecraftVersions.addAll(minecraft_version_list.split(','))
|
||||
serverRequired = true
|
||||
}
|
||||
|
||||
modrinth {
|
||||
projectId = modrinth_id
|
||||
|
||||
dryRun = providers.environmentVariable("MODRINTH_API_KEY").getOrNull() == null
|
||||
accessToken = providers.environmentVariable("MODRINTH_API_KEY")
|
||||
|
||||
minecraftVersions.addAll(minecraft_version_list.split(','))
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
plugins {
|
||||
id 'multiloader-loader'
|
||||
id 'fabric-loom'
|
||||
|
||||
id 'multiloader-publish'
|
||||
}
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${minecraft_version}"
|
||||
|
||||
@@ -5,6 +5,8 @@ plugins {
|
||||
id 'net.minecraftforge.gradle'
|
||||
id 'org.spongepowered.mixin' version '0.7-SNAPSHOT'
|
||||
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
|
||||
|
||||
id 'multiloader-publish'
|
||||
}
|
||||
|
||||
mixin {
|
||||
|
||||
@@ -7,14 +7,15 @@ java_version=21
|
||||
|
||||
# Common
|
||||
minecraft_version=1.21
|
||||
minecraft_version_list=1.21
|
||||
minecraft_version_range=[1.21, 1.22)
|
||||
mod_id=skinrestorer
|
||||
mod_name=SkinRestorer
|
||||
mod_version=2.0.1
|
||||
mod_author=Lionarius
|
||||
mod_id=skinrestorer
|
||||
license=MIT
|
||||
credits=
|
||||
description=A server-side mod for managing skins.
|
||||
minecraft_version_range=[1.21, 1.22)
|
||||
## This is the version of minecraft that the 'common' project uses, you can find a list of all versions here
|
||||
## https://projects.neoforged.net/neoforged/neoform
|
||||
neo_form_version=1.21-20240613.152323
|
||||
@@ -33,6 +34,10 @@ forge_loader_version_range=[51,)
|
||||
neoforge_version=21.0.0-beta
|
||||
neoforge_loader_version_range=[4,)
|
||||
|
||||
# Publishing
|
||||
curseforge_id=443823
|
||||
modrinth_id=ghrZDhGW
|
||||
|
||||
# Gradle
|
||||
org.gradle.jvmargs=-Xmx3G
|
||||
org.gradle.daemon=false
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
plugins {
|
||||
id 'multiloader-loader'
|
||||
id 'net.neoforged.moddev'
|
||||
|
||||
id 'multiloader-publish'
|
||||
}
|
||||
|
||||
neoForge {
|
||||
|
||||
Reference in New Issue
Block a user