Skip to content

Commit

Permalink
Create remap configurations for automatic data generation configuration.
Browse files Browse the repository at this point in the history
Closes #972
  • Loading branch information
modmuss50 committed Nov 9, 2023
1 parent 09a4ffb commit 7c3bec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public void configureDataGeneration(Action<DataGenerationSettings> action) {
// Create a classpath group for this mod. Assume that the main sourceset is already in a group.
mod.sourceSet(DATAGEN_SOURCESET_NAME);
});

extension.createRemapConfigurations(sourceSets.getByName(DATAGEN_SOURCESET_NAME));
}

if (settings.getCreateRunConfiguration().get()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class DataGenerationTest extends Specification implements GradleProjectTestTrait
mappings "net.fabricmc:yarn:1.20.2+build.4:v2"
modImplementation "net.fabricmc:fabric-loader:0.14.23"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.90.0+1.20.2"
modDatagenImplementation fabricApi.module("fabric-data-generation-api-v1", "0.90.0+1.20.2")
}
'''
when:
Expand Down

0 comments on commit 7c3bec3

Please sign in to comment.