mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
Create fat testmod jar (#2256)
This commit is contained in:
parent
92cf9a3ec2
commit
899286998c
2 changed files with 21 additions and 0 deletions
13
build.gradle
13
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"
|
||||
|
|
8
src/testmod/resources/fabric.mod.json
Normal file
8
src/testmod/resources/fabric.mod.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "fabric-testmod",
|
||||
"name": "Fabric API Test Mod",
|
||||
"version": "${version}",
|
||||
"environment": "*",
|
||||
"license": "Apache-2.0"
|
||||
}
|
Loading…
Reference in a new issue