Skip to content

Commit

Permalink
Improve supports for minimum Gradle support and custom plugin source set
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lacasse <[email protected]>
  • Loading branch information
lacasseio committed Jul 10, 2024
1 parent fd213dd commit b296ba1
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,11 @@ public void execute(Project ___) {
});
}

if (!extension.getPluginSourceSet().getName().equals("main")) {
apiElements.extendsFrom(api);
apiElements.extendsFrom(compileOnlyApi);
apiElements.extendsFrom(api);
apiElements.extendsFrom(compileOnlyApi);

runtimeElements.extendsFrom(project.getConfigurations().getByName(extension.getPluginSourceSet().getImplementationConfigurationName()));
runtimeElements.extendsFrom(project.getConfigurations().getByName(extension.getPluginSourceSet().getRuntimeOnlyConfigurationName()));
}
runtimeElements.extendsFrom(project.getConfigurations().getByName(extension.getPluginSourceSet().getImplementationConfigurationName()));
runtimeElements.extendsFrom(project.getConfigurations().getByName(extension.getPluginSourceSet().getRuntimeOnlyConfigurationName()));
}

private /*static*/ String compileOnlyApiConfigurationName(SourceSet sourceSet) {
Expand Down

0 comments on commit b296ba1

Please sign in to comment.