From 9f832eea692c5eaf1620791ded4d78405e719a4e Mon Sep 17 00:00:00 2001 From: Peter Fortuin Date: Mon, 24 Jul 2023 11:56:59 +0200 Subject: [PATCH] Apply JavaPlugin on the deployment project to solve the "Configuration with name 'annotationProcessor' not found" problem. fixes quarkusio/quarkus#32767 --- .../java/io/quarkus/extension/gradle/QuarkusExtensionPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/devtools/gradle/gradle-extension-plugin/src/main/java/io/quarkus/extension/gradle/QuarkusExtensionPlugin.java b/devtools/gradle/gradle-extension-plugin/src/main/java/io/quarkus/extension/gradle/QuarkusExtensionPlugin.java index 28353026924ee..cd65914f2a6df 100644 --- a/devtools/gradle/gradle-extension-plugin/src/main/java/io/quarkus/extension/gradle/QuarkusExtensionPlugin.java +++ b/devtools/gradle/gradle-extension-plugin/src/main/java/io/quarkus/extension/gradle/QuarkusExtensionPlugin.java @@ -73,6 +73,7 @@ private void registerTasks(Project project, QuarkusExtensionConfiguration quarku //This must be run after the extension has been configured Project deploymentProject = findDeploymentProject(project, quarkusExt); if (deploymentProject != null) { + deploymentProject.getPlugins().apply(JavaPlugin.class); ApplicationDeploymentClasspathBuilder.initConfigurations(deploymentProject); deploymentProject.getPlugins().withType( JavaPlugin.class,