From c39cce4cd815d7396daa2d76ab717371e60bfb15 Mon Sep 17 00:00:00 2001 From: realRobotix <82544307+realRobotix@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:19:35 +0100 Subject: [PATCH] add gradle task to generate all data --- fabric/build.gradle.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts index d93d8cf4..ba89dc82 100644 --- a/fabric/build.gradle.kts +++ b/fabric/build.gradle.kts @@ -50,7 +50,7 @@ loom { silentMojangMappingsLicense() accessWidenerPath = common.loom.accessWidenerPath runConfigs { - create("data") { + create("DataGenFabric") { client() name("Fabric Data Generation") @@ -60,7 +60,7 @@ loom { vmArg("-Dporting_lib.datagen.existing_resources=${project.rootProject.file("common/src/main/resources")}") vmArg("-Dcreatebigcannons.datagen.platform=fabric") } - create("data1") { + create("DataGenForge") { client() name("Forge Data Generation (Fabric)") @@ -213,3 +213,9 @@ tasks.register("buildAndCollect") { into(rootProject.layout.buildDirectory.file("libs/${mod.version}/$loader")) dependsOn("build") } + +tasks.register("runDataGen") { + group = "loom" + description = "Generate data for Create Big Cannons" + dependsOn("runDataGenFabric", "runDataGenForge") +}