From b058ca61ff4056a1b301f826a5542dddd71e209d Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Fri, 24 Feb 2023 15:30:32 +0100 Subject: Optional Signing and Standalone Jar (#332) * Optional Signing and Standalone Jar * - devstandalone Signed-off-by: syeyoung --------- Signed-off-by: syeyoung Co-authored-by: syeyoung --- mod/build.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'mod/build.gradle') diff --git a/mod/build.gradle b/mod/build.gradle index ca9d2054..9a4fc57d 100644 --- a/mod/build.gradle +++ b/mod/build.gradle @@ -21,7 +21,9 @@ sourceSets.main { signing { useGpgCmd() - sign configurations.archives + if (project.findProperty("dg.dosign") == "true"){ + sign configurations.archives + } } repositories { @@ -37,6 +39,15 @@ repositories { configurations { implementation.extendsFrom shadowImpl + + remappedMod { + canBeConsumed = true + canBeResolved = false + } + unmappedMod { + canBeConsumed = true + canBeResolved = false + } } def devenvMod = configurations.create("devenvMod") { @@ -156,3 +167,10 @@ tasks.named("remapJar") { tasks.assemble.dependsOn tasks.remapJar + +artifacts { + remappedMod(tasks.remapJar) + unmappedMod(tasks.shadowJar) +} + + -- cgit