Skip to content

Commit

Permalink
Make sure quarkusXXXCompileOnlyConfiguration extends from platform co…
Browse files Browse the repository at this point in the history
…nfiguration
  • Loading branch information
aloubyansky committed Jun 6, 2024
1 parent 73f14f6 commit 36f5043
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ private void setUpDeploymentConfiguration() {
private void setUpCompileOnlyConfiguration() {
if (!project.getConfigurations().getNames().contains(compileOnlyConfigurationName)) {
project.getConfigurations().register(compileOnlyConfigurationName, config -> {
config.extendsFrom(project.getConfigurations().getByName(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME));
config.extendsFrom(project.getConfigurations().getByName(platformConfigurationName),
project.getConfigurations().getByName(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME));
config.shouldResolveConsistentlyWith(getDeploymentConfiguration());
config.setCanBeConsumed(false);
});
Expand Down

0 comments on commit 36f5043

Please sign in to comment.