Datagen can be hard to setup for some, this PR adds a DSL to help configure a simple datagen setup. You can of course choose not to use this if you wish.
// Enable the default datagen (same as example mod)
fabricApi {
configureDataGeneration()
}
// You can opt into configuring more advanced options, and even create a seperate sourceset for your datagen mod.
fabricApi {
configureDataGeneration {
createSourceSet = true // default false
createRunConfiguration = true // default true
modId = "example-datagen" // default no value, required when generating a seperate sourceset.
strictValidation = true // default false
}
}
Datagen can be hard to setup for some, this PR adds a DSL to help configure a simple datagen setup. You can of course choose not to use this if you wish.