FabricMC / fabric-loom

Gradle build system plugin used to automate the setup of a minecraft mod development environment.
MIT License
233 stars 201 forks source link

Automatic data generation configuration should create remap configurations #972

Closed haykam821 closed 10 months ago

haykam821 commented 10 months ago

Right now, to add remapped dependencies to the data generation source set created by fabricApi.configureDataGeneration, one must manually specify that remap configurations should be created:

loom {
    createRemapConfigurations(sourceSets.datagen)
}

This use case is common for adding the data generation API only to the data generation source set:

dependencies {
    modDatagenImplementation(fabricApi.module("fabric-data-generation-api-v1", project.fabric_version))
}