Enabled DataGen
This commit is contained in:
parent
a8856fff15
commit
76c5e1ce42
5 changed files with 100 additions and 0 deletions
13
build.gradle
13
build.gradle
|
@ -52,6 +52,19 @@ loom {
|
|||
// When enabled injected interfaces from dependecies will be applied.
|
||||
enableDependencyInterfaceInjection = true
|
||||
}
|
||||
runs {
|
||||
// This adds a new gradle task that runs the datagen API: "gradlew runDatagenClient"
|
||||
datagenClient {
|
||||
inherit client
|
||||
name "Data Generation"
|
||||
vmArg "-Dfabric-api.datagen"
|
||||
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
|
||||
vmArg "-Dfabric-api.datagen.strict-validation"
|
||||
vmArg "-Dfabric-api.datagen.modid=betterend"
|
||||
|
||||
runDir "build/datagen"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue