Skip to content

Commit

Permalink
add gradle task to generate all data
Browse files Browse the repository at this point in the history
  • Loading branch information
realRobotix committed Dec 8, 2024
1 parent 158d1de commit c39cce4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ loom {
silentMojangMappingsLicense()
accessWidenerPath = common.loom.accessWidenerPath
runConfigs {
create("data") {
create("DataGenFabric") {
client()

name("Fabric Data Generation")
Expand All @@ -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)")
Expand Down Expand Up @@ -213,3 +213,9 @@ tasks.register<Copy>("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")
}

0 comments on commit c39cce4

Please sign in to comment.