From 899286998c8fab7c8a0505dea74e3a4e7bd27621 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Tue, 24 May 2022 15:04:30 +0100 Subject: [PATCH] Create fat testmod jar (#2256) --- build.gradle | 13 +++++++++++++ src/testmod/resources/fabric.mod.json | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/testmod/resources/fabric.mod.json diff --git a/build.gradle b/build.gradle index 547b66fe7..4ef5f3223 100644 --- a/build.gradle +++ b/build.gradle @@ -260,6 +260,19 @@ allprojects { build.dependsOn remapTestmodJar } +remapTestmodJar { + def testModJarTasks = [] + + subprojects { + if (it.name == "deprecated" || !it.file("src/testmod").exists()) return + + testModJarTasks += it.tasks.remapTestmodJar + } + + nestedJars.setFrom(testModJarTasks) + addNestedDependencies = true +} + // Apply auxiliary buildscripts to submodules // This must be done after all plugins are applied to subprojects apply from: "gradle/module-validation.gradle" diff --git a/src/testmod/resources/fabric.mod.json b/src/testmod/resources/fabric.mod.json new file mode 100644 index 000000000..b53400706 --- /dev/null +++ b/src/testmod/resources/fabric.mod.json @@ -0,0 +1,8 @@ +{ + "schemaVersion": 1, + "id": "fabric-testmod", + "name": "Fabric API Test Mod", + "version": "${version}", + "environment": "*", + "license": "Apache-2.0" +}