From b9f7e3927168dcb7c3c8d4658f7fb7222623e82c Mon Sep 17 00:00:00 2001 From: opekope2 Date: Thu, 8 Feb 2024 19:08:29 +0100 Subject: [PATCH] Also add license to the dev jar --- FabricMod/build.gradle.kts | 11 ++++++----- ForgeMod/build.gradle.kts | 14 ++++++++------ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/FabricMod/build.gradle.kts b/FabricMod/build.gradle.kts index 0dfd3c36c..9444a6f3c 100644 --- a/FabricMod/build.gradle.kts +++ b/FabricMod/build.gradle.kts @@ -50,11 +50,6 @@ tasks { archiveClassifier = "dev" } - remapJar { - from(rootDir.resolve("COPYING")) - from(rootDir.resolve("COPYING.LESSER")) - } - processResources { filesMatching("fabric.mod.json") { expand( @@ -75,6 +70,9 @@ tasks { configurations = listOf(shadowCommon) archiveClassifier = "dev-shadow" + + from(rootDir.resolve("COPYING")) + from(rootDir.resolve("COPYING.LESSER")) } remapJar { @@ -82,6 +80,9 @@ tasks { inputFile.set(shadowJar.get().archiveFile) injectAccessWidener = true archiveClassifier = null + + from(rootDir.resolve("COPYING")) + from(rootDir.resolve("COPYING.LESSER")) } sourcesJar { diff --git a/ForgeMod/build.gradle.kts b/ForgeMod/build.gradle.kts index dbc921250..8feeae420 100644 --- a/ForgeMod/build.gradle.kts +++ b/ForgeMod/build.gradle.kts @@ -54,12 +54,6 @@ tasks { archiveClassifier = "dev" } - remapJar { - from(projectDir.resolve("Fabric.license")) - from(rootDir.resolve("COPYING")) - from(rootDir.resolve("COPYING.LESSER")) - } - processResources { filesMatching("META-INF/mods.toml") { expand( @@ -81,6 +75,10 @@ tasks { configurations = listOf(shadowCommon) archiveClassifier = "dev-shadow" + + from(rootDir.resolve("COPYING")) + from(rootDir.resolve("COPYING.LESSER")) + from(projectDir.resolve("Fabric.license")) } remapJar { @@ -88,6 +86,10 @@ tasks { inputFile.set(shadowJar.get().archiveFile) injectAccessWidener = true archiveClassifier = null + + from(rootDir.resolve("COPYING")) + from(rootDir.resolve("COPYING.LESSER")) + from(projectDir.resolve("Fabric.license")) } sourcesJar {