1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

single jar

This commit is contained in:
2024-06-27 18:20:25 +03:00
parent e50035abc7
commit fbb15a2dab
3 changed files with 18 additions and 7 deletions

2
.gitignore vendored
View File

@@ -28,6 +28,4 @@ bin/
*.DS_Store
# fabric
run/

View File

@@ -2,10 +2,12 @@ plugins {
id 'dev.architectury.loom' version '1.6-SNAPSHOT' apply false
id 'architectury-plugin' version '3.4-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id "io.github.pacifistmc.forgix" version "1.2.9"
// id "com.modrinth.minotaur" version "2.+"
// id 'net.darkhax.curseforgegradle' version '1.1.15'
}
version = "${project.mod_version}+${project.minecraft_version}"
ext.version_name = "${project.capitalized_name} ${project.mod_version}"
ext.headTag = "git describe --tags --abbrev=0 HEAD".execute([], rootProject.projectDir).text.trim()
ext.previousTag = "git describe --tags --abbrev=0 HEAD^".execute([], rootProject.projectDir).text.trim()
@@ -14,21 +16,31 @@ architectury {
minecraft = project.minecraft_version
}
forgix {
group = "$project.maven_group.$project.mod_id"
// forgix does not append .jar extension for some reason
mergedJarName = "${project.archives_name}-${project.version}.jar"
outputDir = "build/libs/merged"
// removeDuplicate "$project.maven_group.$project.mod_id"
}
allprojects {
version = "${project.mod_version}+${project.minecraft_version}"
version = rootProject.version
group = project.maven_group
}
subprojects {
apply plugin: 'dev.architectury.loom'
apply plugin: 'architectury-plugin'
apply plugin: 'maven-publish'
base {
// Set up a suffixed format for the mod jar names, e.g. `example-fabric`.
archivesName = "$rootProject.archives_name-$project.name"
}
build.finalizedBy(mergeJars)
assemble.finalizedBy(mergeJars)
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because

View File

@@ -4,15 +4,16 @@ org.gradle.parallel=true
# Mod Properties
mod_version=1.2.6
mod_id=skinrestorer
minecraft_version=1.21
enabled_platforms = fabric,neoforge
enabled_platforms=fabric,neoforge
maven_group=net.lionarius
archives_name=skin-restorer
capitalized_name=SkinRestorer
# Mappings
yarn_mappings=1.21+build.4
yarn_mappings_patch_neoforge_version = 1.21+build.4
yarn_mappings_patch_neoforge_version=1.21+build.4
# Fabric Properties
# check these on https://fabricmc.net/versions.html