diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/QuarkusPlugin.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/QuarkusPlugin.java index 2de5449d8188d..4841a6672e14f 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/QuarkusPlugin.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/QuarkusPlugin.java @@ -162,7 +162,12 @@ public void execute(Task test) { compileJava.mustRunAfter(quarkusGenerateCodeDev); }); tasks.named(JavaPlugin.COMPILE_TEST_JAVA_TASK_NAME, JavaCompile.class, - compileTestJava -> compileTestJava.dependsOn(quarkusGenerateCodeTests)); + compileTestJava -> { + compileTestJava.dependsOn(quarkusGenerateCodeTests); + if (project.getGradle().getStartParameter().getTaskNames().contains(QUARKUS_DEV_TASK_NAME)) { + compileTestJava.getOptions().setFailOnError(false); + } + }); TaskProvider classesTask = tasks.named(JavaPlugin.CLASSES_TASK_NAME); TaskProvider resourcesTask = tasks.named(JavaPlugin.PROCESS_RESOURCES_TASK_NAME); diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-a/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-a/settings.gradle index 7b46d41731f73..5082c19adbb5e 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-a/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-a/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-b/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-b/settings.gradle index 5a60a7ca513e5..e418c2a1a36db 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-b/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-b/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-c/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-c/settings.gradle index 6159c3dcdd70d..1b4173f010d83 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-c/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-c/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-d/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-d/settings.gradle index e098e9dc211b5..7cac67949b9bf 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-d/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-d/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-e/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-e/settings.gradle index 9fb95a681b7a7..9e8df712de7be 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-e/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-e/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-f/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-f/settings.gradle index f1e4508cab70d..29f241ef916a4 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-f/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-f/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-g/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-g/settings.gradle index 6250fe81d9cbe..b8b5eb6644fd6 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-g/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-g/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-h/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-h/settings.gradle index eccf58ccd8f1b..650ab7a4c016b 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-h/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-h/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-i/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-i/settings.gradle index 2a0a618a21220..fa4c2f62f93d5 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-i/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-i/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-j/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-j/settings.gradle index a2788922da90d..c186ea5450b9b 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-j/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-j/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-k/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-k/settings.gradle index 7c4378feaf119..b39365f147646 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-k/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-k/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-l/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-l/settings.gradle index e6f3c06df0725..8b8a90c574026 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-l/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-l/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-m/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-m/settings.gradle index d7fbd593c2567..f51636447a8f9 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-m/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-m/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-n/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-n/settings.gradle index ad933a590966b..cf07818090d2f 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-n/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-n/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-o/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-o/settings.gradle index 2479cc4df79e0..5708b8266093a 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-o/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-o/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-p/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-p/settings.gradle index e3973ee03c6ee..4dee181a506e5 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-p/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-p/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-r/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-r/settings.gradle index 3c548c49ab531..474145deb9331 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-r/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-r/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-t/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-t/settings.gradle index 1c0b3043413a3..29ad71cb916c1 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-t/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-t/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-u/settings.gradle b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-u/settings.gradle index b891a71edde31..6f0f5cfff910b 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-u/settings.gradle +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies/ext-u/settings.gradle @@ -13,7 +13,6 @@ pluginManagement { } //noinspection GroovyAssignabilityCheck plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" id 'io.quarkus.extension' version "${quarkusPluginVersion}" } }