Create fat testmod jar (#2256)

This commit is contained in:
modmuss50 2022-05-24 15:04:30 +01:00 committed by GitHub
parent 92cf9a3ec2
commit 899286998c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -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"

View file

@ -0,0 +1,8 @@
{
"schemaVersion": 1,
"id": "fabric-testmod",
"name": "Fabric API Test Mod",
"version": "${version}",
"environment": "*",
"license": "Apache-2.0"
}