Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fabricApi.configureDataGeneration API/DSL to help with setting up datageneration. #960

Merged
merged 3 commits into from
Oct 15, 2023

Conversation

modmuss50
Copy link
Member

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
    }
}

@modmuss50 modmuss50 changed the base branch from dev/1.4 to tmp/1.4 October 15, 2023 09:46
@modmuss50 modmuss50 merged commit f73f596 into FabricMC:tmp/1.4 Oct 15, 2023
73 of 76 checks passed
modmuss50 added a commit that referenced this pull request Oct 16, 2023
… data generation. (#960)

* Add fabricApi.configureDataGeneration API/DSL to help with setting up datageneration.

* Clean + add option to not add to resources

* Dont create new task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant