From 36f5043f35758f58eddd780f36a3c83c42b9e9ce Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Thu, 6 Jun 2024 09:01:59 +0200 Subject: [PATCH] Make sure quarkusXXXCompileOnlyConfiguration extends from platform configuration --- .../dependency/ApplicationDeploymentClasspathBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java b/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java index f3cd59c9d8f65..ffc0564ff65e0 100644 --- a/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java +++ b/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java @@ -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); });