diff --git a/extensions-jvm/asn1/deployment/src/main/java/org/apache/camel/quarkus/component/asn1/deployment/Asn1Processor.java b/extensions-jvm/asn1/deployment/src/main/java/org/apache/camel/quarkus/component/asn1/deployment/Asn1Processor.java index 6aa3f03271d8..cef2000bd8be 100644 --- a/extensions-jvm/asn1/deployment/src/main/java/org/apache/camel/quarkus/component/asn1/deployment/Asn1Processor.java +++ b/extensions-jvm/asn1/deployment/src/main/java/org/apache/camel/quarkus/component/asn1/deployment/Asn1Processor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/asterisk/deployment/src/main/java/org/apache/camel/quarkus/component/asterisk/deployment/AsteriskProcessor.java b/extensions-jvm/asterisk/deployment/src/main/java/org/apache/camel/quarkus/component/asterisk/deployment/AsteriskProcessor.java index 387a80db8cb2..af84c3f67783 100644 --- a/extensions-jvm/asterisk/deployment/src/main/java/org/apache/camel/quarkus/component/asterisk/deployment/AsteriskProcessor.java +++ b/extensions-jvm/asterisk/deployment/src/main/java/org/apache/camel/quarkus/component/asterisk/deployment/AsteriskProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/aws-secrets-manager/deployment/src/main/java/org/apache/camel/quarkus/component/aws/secrets/manager/deployment/AwsSecretsManagerProcessor.java b/extensions-jvm/aws-secrets-manager/deployment/src/main/java/org/apache/camel/quarkus/component/aws/secrets/manager/deployment/AwsSecretsManagerProcessor.java index 1597b56df770..cbeeb1f980e6 100644 --- a/extensions-jvm/aws-secrets-manager/deployment/src/main/java/org/apache/camel/quarkus/component/aws/secrets/manager/deployment/AwsSecretsManagerProcessor.java +++ b/extensions-jvm/aws-secrets-manager/deployment/src/main/java/org/apache/camel/quarkus/component/aws/secrets/manager/deployment/AwsSecretsManagerProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/aws-xray/deployment/src/main/java/org/apache/camel/quarkus/component/aws/xray/deployment/AwsXrayProcessor.java b/extensions-jvm/aws-xray/deployment/src/main/java/org/apache/camel/quarkus/component/aws/xray/deployment/AwsXrayProcessor.java index d5556cf0fd5a..b88a37c3f10c 100644 --- a/extensions-jvm/aws-xray/deployment/src/main/java/org/apache/camel/quarkus/component/aws/xray/deployment/AwsXrayProcessor.java +++ b/extensions-jvm/aws-xray/deployment/src/main/java/org/apache/camel/quarkus/component/aws/xray/deployment/AwsXrayProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/azure-cosmosdb/deployment/src/main/java/org/apache/camel/quarkus/component/azure/cosmosdb/deployment/AzureCosmosdbProcessor.java b/extensions-jvm/azure-cosmosdb/deployment/src/main/java/org/apache/camel/quarkus/component/azure/cosmosdb/deployment/AzureCosmosdbProcessor.java index 64b6e98d9604..1927ac0cd52f 100644 --- a/extensions-jvm/azure-cosmosdb/deployment/src/main/java/org/apache/camel/quarkus/component/azure/cosmosdb/deployment/AzureCosmosdbProcessor.java +++ b/extensions-jvm/azure-cosmosdb/deployment/src/main/java/org/apache/camel/quarkus/component/azure/cosmosdb/deployment/AzureCosmosdbProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/azure-key-vault/deployment/src/main/java/org/apache/camel/quarkus/component/azure/key/vault/deployment/AzureKeyVaultProcessor.java b/extensions-jvm/azure-key-vault/deployment/src/main/java/org/apache/camel/quarkus/component/azure/key/vault/deployment/AzureKeyVaultProcessor.java index efe3fd77952b..10441a42caf3 100644 --- a/extensions-jvm/azure-key-vault/deployment/src/main/java/org/apache/camel/quarkus/component/azure/key/vault/deployment/AzureKeyVaultProcessor.java +++ b/extensions-jvm/azure-key-vault/deployment/src/main/java/org/apache/camel/quarkus/component/azure/key/vault/deployment/AzureKeyVaultProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/azure-servicebus/deployment/src/main/java/org/apache/camel/quarkus/component/azure/servicebus/deployment/AzureServicebusProcessor.java b/extensions-jvm/azure-servicebus/deployment/src/main/java/org/apache/camel/quarkus/component/azure/servicebus/deployment/AzureServicebusProcessor.java index e9a3ddae0e63..7790942ac24f 100644 --- a/extensions-jvm/azure-servicebus/deployment/src/main/java/org/apache/camel/quarkus/component/azure/servicebus/deployment/AzureServicebusProcessor.java +++ b/extensions-jvm/azure-servicebus/deployment/src/main/java/org/apache/camel/quarkus/component/azure/servicebus/deployment/AzureServicebusProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/azure-storage-datalake/deployment/src/main/java/org/apache/camel/quarkus/component/azure/storage/datalake/deployment/AzureStorageDatalakeProcessor.java b/extensions-jvm/azure-storage-datalake/deployment/src/main/java/org/apache/camel/quarkus/component/azure/storage/datalake/deployment/AzureStorageDatalakeProcessor.java index ba0564008cd6..dc9641537426 100644 --- a/extensions-jvm/azure-storage-datalake/deployment/src/main/java/org/apache/camel/quarkus/component/azure/storage/datalake/deployment/AzureStorageDatalakeProcessor.java +++ b/extensions-jvm/azure-storage-datalake/deployment/src/main/java/org/apache/camel/quarkus/component/azure/storage/datalake/deployment/AzureStorageDatalakeProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/barcode/deployment/src/main/java/org/apache/camel/quarkus/component/barcode/deployment/BarcodeProcessor.java b/extensions-jvm/barcode/deployment/src/main/java/org/apache/camel/quarkus/component/barcode/deployment/BarcodeProcessor.java index 000c8e82bf95..657627dfe72f 100644 --- a/extensions-jvm/barcode/deployment/src/main/java/org/apache/camel/quarkus/component/barcode/deployment/BarcodeProcessor.java +++ b/extensions-jvm/barcode/deployment/src/main/java/org/apache/camel/quarkus/component/barcode/deployment/BarcodeProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/bonita/deployment/src/main/java/org/apache/camel/quarkus/component/bonita/deployment/BonitaProcessor.java b/extensions-jvm/bonita/deployment/src/main/java/org/apache/camel/quarkus/component/bonita/deployment/BonitaProcessor.java index 943a54c2dce7..79cb3c841ec0 100644 --- a/extensions-jvm/bonita/deployment/src/main/java/org/apache/camel/quarkus/component/bonita/deployment/BonitaProcessor.java +++ b/extensions-jvm/bonita/deployment/src/main/java/org/apache/camel/quarkus/component/bonita/deployment/BonitaProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/chatscript/deployment/src/main/java/org/apache/camel/quarkus/component/chatscript/deployment/ChatscriptProcessor.java b/extensions-jvm/chatscript/deployment/src/main/java/org/apache/camel/quarkus/component/chatscript/deployment/ChatscriptProcessor.java index e2133a0b7574..9ea8b649b85e 100644 --- a/extensions-jvm/chatscript/deployment/src/main/java/org/apache/camel/quarkus/component/chatscript/deployment/ChatscriptProcessor.java +++ b/extensions-jvm/chatscript/deployment/src/main/java/org/apache/camel/quarkus/component/chatscript/deployment/ChatscriptProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/chunk/deployment/src/main/java/org/apache/camel/quarkus/component/chunk/deployment/ChunkProcessor.java b/extensions-jvm/chunk/deployment/src/main/java/org/apache/camel/quarkus/component/chunk/deployment/ChunkProcessor.java index 2b9fe5f56aa3..4149c0e65e02 100644 --- a/extensions-jvm/chunk/deployment/src/main/java/org/apache/camel/quarkus/component/chunk/deployment/ChunkProcessor.java +++ b/extensions-jvm/chunk/deployment/src/main/java/org/apache/camel/quarkus/component/chunk/deployment/ChunkProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/cli-connector/deployment/src/main/java/org/apache/camel/quarkus/component/cli/connector/deployment/CliConnectorProcessor.java b/extensions-jvm/cli-connector/deployment/src/main/java/org/apache/camel/quarkus/component/cli/connector/deployment/CliConnectorProcessor.java index c30812e4888e..0edcf224df47 100644 --- a/extensions-jvm/cli-connector/deployment/src/main/java/org/apache/camel/quarkus/component/cli/connector/deployment/CliConnectorProcessor.java +++ b/extensions-jvm/cli-connector/deployment/src/main/java/org/apache/camel/quarkus/component/cli/connector/deployment/CliConnectorProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/cm-sms/deployment/src/main/java/org/apache/camel/quarkus/component/cm/sms/deployment/CmSmsProcessor.java b/extensions-jvm/cm-sms/deployment/src/main/java/org/apache/camel/quarkus/component/cm/sms/deployment/CmSmsProcessor.java index ff0ab8bce8b6..c3ba85949500 100644 --- a/extensions-jvm/cm-sms/deployment/src/main/java/org/apache/camel/quarkus/component/cm/sms/deployment/CmSmsProcessor.java +++ b/extensions-jvm/cm-sms/deployment/src/main/java/org/apache/camel/quarkus/component/cm/sms/deployment/CmSmsProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/coap/deployment/src/main/java/org/apache/camel/quarkus/component/coap/deployment/CoapProcessor.java b/extensions-jvm/coap/deployment/src/main/java/org/apache/camel/quarkus/component/coap/deployment/CoapProcessor.java index 89fe12e24a04..1e5085188f42 100644 --- a/extensions-jvm/coap/deployment/src/main/java/org/apache/camel/quarkus/component/coap/deployment/CoapProcessor.java +++ b/extensions-jvm/coap/deployment/src/main/java/org/apache/camel/quarkus/component/coap/deployment/CoapProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/cometd/deployment/src/main/java/org/apache/camel/quarkus/component/cometd/deployment/CometdProcessor.java b/extensions-jvm/cometd/deployment/src/main/java/org/apache/camel/quarkus/component/cometd/deployment/CometdProcessor.java index d0c3202b8168..629c281e89da 100644 --- a/extensions-jvm/cometd/deployment/src/main/java/org/apache/camel/quarkus/component/cometd/deployment/CometdProcessor.java +++ b/extensions-jvm/cometd/deployment/src/main/java/org/apache/camel/quarkus/component/cometd/deployment/CometdProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/console/deployment/src/main/java/org/apache/camel/quarkus/component/console/deployment/ConsoleProcessor.java b/extensions-jvm/console/deployment/src/main/java/org/apache/camel/quarkus/component/console/deployment/ConsoleProcessor.java index 667b478d1297..789f2187d512 100644 --- a/extensions-jvm/console/deployment/src/main/java/org/apache/camel/quarkus/component/console/deployment/ConsoleProcessor.java +++ b/extensions-jvm/console/deployment/src/main/java/org/apache/camel/quarkus/component/console/deployment/ConsoleProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.apache.camel.quarkus.core.deployment.spi.CamelServiceDestination; import org.apache.camel.quarkus.core.deployment.spi.CamelServicePatternBuildItem; @@ -45,7 +45,7 @@ CamelServicePatternBuildItem devConsoleServicePattern() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/couchbase/deployment/src/main/java/org/apache/camel/quarkus/component/couchbase/deployment/CouchbaseProcessor.java b/extensions-jvm/couchbase/deployment/src/main/java/org/apache/camel/quarkus/component/couchbase/deployment/CouchbaseProcessor.java index 0ada88453416..c8fa0e7c4213 100644 --- a/extensions-jvm/couchbase/deployment/src/main/java/org/apache/camel/quarkus/component/couchbase/deployment/CouchbaseProcessor.java +++ b/extensions-jvm/couchbase/deployment/src/main/java/org/apache/camel/quarkus/component/couchbase/deployment/CouchbaseProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/djl/deployment/src/main/java/org/apache/camel/quarkus/component/djl/deployment/DjlProcessor.java b/extensions-jvm/djl/deployment/src/main/java/org/apache/camel/quarkus/component/djl/deployment/DjlProcessor.java index 3d90dd90920c..56a28c314da3 100644 --- a/extensions-jvm/djl/deployment/src/main/java/org/apache/camel/quarkus/component/djl/deployment/DjlProcessor.java +++ b/extensions-jvm/djl/deployment/src/main/java/org/apache/camel/quarkus/component/djl/deployment/DjlProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/dns/deployment/src/main/java/org/apache/camel/quarkus/component/dns/deployment/DnsProcessor.java b/extensions-jvm/dns/deployment/src/main/java/org/apache/camel/quarkus/component/dns/deployment/DnsProcessor.java index f4d52f0f639b..8bd2d218f220 100644 --- a/extensions-jvm/dns/deployment/src/main/java/org/apache/camel/quarkus/component/dns/deployment/DnsProcessor.java +++ b/extensions-jvm/dns/deployment/src/main/java/org/apache/camel/quarkus/component/dns/deployment/DnsProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/drill/deployment/src/main/java/org/apache/camel/quarkus/component/drill/deployment/DrillProcessor.java b/extensions-jvm/drill/deployment/src/main/java/org/apache/camel/quarkus/component/drill/deployment/DrillProcessor.java index 2eb55f56af6a..14604c4bdcba 100644 --- a/extensions-jvm/drill/deployment/src/main/java/org/apache/camel/quarkus/component/drill/deployment/DrillProcessor.java +++ b/extensions-jvm/drill/deployment/src/main/java/org/apache/camel/quarkus/component/drill/deployment/DrillProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/dsl-modeline/deployment/src/main/java/org/apache/camel/quarkus/component/dsl/modeline/deployment/DslModelineProcessor.java b/extensions-jvm/dsl-modeline/deployment/src/main/java/org/apache/camel/quarkus/component/dsl/modeline/deployment/DslModelineProcessor.java index ae7c6a8dfca4..10c491d4736b 100644 --- a/extensions-jvm/dsl-modeline/deployment/src/main/java/org/apache/camel/quarkus/component/dsl/modeline/deployment/DslModelineProcessor.java +++ b/extensions-jvm/dsl-modeline/deployment/src/main/java/org/apache/camel/quarkus/component/dsl/modeline/deployment/DslModelineProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.runtime.RuntimeValue; import org.apache.camel.CamelContext; import org.apache.camel.quarkus.component.dsl.modeline.runtime.PropertyTraitRecorder; @@ -34,7 +34,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void nativeUnsupported() { throw new RuntimeException("The " + FEATURE + " extension is not supported in native mode " + "as JMX is not supported on GraalVM"); diff --git a/extensions-jvm/ehcache/deployment/src/main/java/org/apache/camel/quarkus/component/ehcache/deployment/EhcacheProcessor.java b/extensions-jvm/ehcache/deployment/src/main/java/org/apache/camel/quarkus/component/ehcache/deployment/EhcacheProcessor.java index bf7873d50cb9..a3215fe2a637 100644 --- a/extensions-jvm/ehcache/deployment/src/main/java/org/apache/camel/quarkus/component/ehcache/deployment/EhcacheProcessor.java +++ b/extensions-jvm/ehcache/deployment/src/main/java/org/apache/camel/quarkus/component/ehcache/deployment/EhcacheProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/elasticsearch/deployment/src/main/java/org/apache/camel/quarkus/component/elasticsearch/deployment/ElasticsearchProcessor.java b/extensions-jvm/elasticsearch/deployment/src/main/java/org/apache/camel/quarkus/component/elasticsearch/deployment/ElasticsearchProcessor.java index 56a568387e5b..34ba2492787b 100644 --- a/extensions-jvm/elasticsearch/deployment/src/main/java/org/apache/camel/quarkus/component/elasticsearch/deployment/ElasticsearchProcessor.java +++ b/extensions-jvm/elasticsearch/deployment/src/main/java/org/apache/camel/quarkus/component/elasticsearch/deployment/ElasticsearchProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/etcd3/deployment/src/main/java/org/apache/camel/quarkus/component/etcd3/deployment/Etcd3Processor.java b/extensions-jvm/etcd3/deployment/src/main/java/org/apache/camel/quarkus/component/etcd3/deployment/Etcd3Processor.java index 5bcc500a83a9..7b8c76f02630 100644 --- a/extensions-jvm/etcd3/deployment/src/main/java/org/apache/camel/quarkus/component/etcd3/deployment/Etcd3Processor.java +++ b/extensions-jvm/etcd3/deployment/src/main/java/org/apache/camel/quarkus/component/etcd3/deployment/Etcd3Processor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java b/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java index 2c9473db3ce8..675672d205e5 100644 --- a/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java +++ b/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/fastjson/deployment/src/main/java/org/apache/camel/quarkus/component/fastjson/deployment/FastjsonProcessor.java b/extensions-jvm/fastjson/deployment/src/main/java/org/apache/camel/quarkus/component/fastjson/deployment/FastjsonProcessor.java index c1c632a1a933..a6142b550aaa 100644 --- a/extensions-jvm/fastjson/deployment/src/main/java/org/apache/camel/quarkus/component/fastjson/deployment/FastjsonProcessor.java +++ b/extensions-jvm/fastjson/deployment/src/main/java/org/apache/camel/quarkus/component/fastjson/deployment/FastjsonProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/flink/deployment/src/main/java/org/apache/camel/quarkus/component/flink/deployment/FlinkProcessor.java b/extensions-jvm/flink/deployment/src/main/java/org/apache/camel/quarkus/component/flink/deployment/FlinkProcessor.java index 1280544fe116..36122eb89c3e 100644 --- a/extensions-jvm/flink/deployment/src/main/java/org/apache/camel/quarkus/component/flink/deployment/FlinkProcessor.java +++ b/extensions-jvm/flink/deployment/src/main/java/org/apache/camel/quarkus/component/flink/deployment/FlinkProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/google-functions/deployment/src/main/java/org/apache/camel/quarkus/component/google/functions/deployment/GoogleFunctionsProcessor.java b/extensions-jvm/google-functions/deployment/src/main/java/org/apache/camel/quarkus/component/google/functions/deployment/GoogleFunctionsProcessor.java index 1258fc0e31c3..a312a3f6993f 100644 --- a/extensions-jvm/google-functions/deployment/src/main/java/org/apache/camel/quarkus/component/google/functions/deployment/GoogleFunctionsProcessor.java +++ b/extensions-jvm/google-functions/deployment/src/main/java/org/apache/camel/quarkus/component/google/functions/deployment/GoogleFunctionsProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/google-secret-manager/deployment/src/main/java/org/apache/camel/quarkus/component/google/secret/manager/deployment/GoogleSecretManagerProcessor.java b/extensions-jvm/google-secret-manager/deployment/src/main/java/org/apache/camel/quarkus/component/google/secret/manager/deployment/GoogleSecretManagerProcessor.java index 7a1a2ac8f8c6..89257309467d 100644 --- a/extensions-jvm/google-secret-manager/deployment/src/main/java/org/apache/camel/quarkus/component/google/secret/manager/deployment/GoogleSecretManagerProcessor.java +++ b/extensions-jvm/google-secret-manager/deployment/src/main/java/org/apache/camel/quarkus/component/google/secret/manager/deployment/GoogleSecretManagerProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java b/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java index 9b98b45f2133..239e3f8a6320 100644 --- a/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java +++ b/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/hashicorp-vault/deployment/src/main/java/org/apache/camel/quarkus/component/hashicorp/vault/deployment/HashicorpVaultProcessor.java b/extensions-jvm/hashicorp-vault/deployment/src/main/java/org/apache/camel/quarkus/component/hashicorp/vault/deployment/HashicorpVaultProcessor.java index 70e60bb05ff0..b76a71e6f0fb 100644 --- a/extensions-jvm/hashicorp-vault/deployment/src/main/java/org/apache/camel/quarkus/component/hashicorp/vault/deployment/HashicorpVaultProcessor.java +++ b/extensions-jvm/hashicorp-vault/deployment/src/main/java/org/apache/camel/quarkus/component/hashicorp/vault/deployment/HashicorpVaultProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.java b/extensions-jvm/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.java index 34ea8ff2ff3f..a52af5f26eb2 100644 --- a/extensions-jvm/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.java +++ b/extensions-jvm/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/huaweicloud-smn/deployment/src/main/java/org/apache/camel/quarkus/component/huaweicloud/smn/deployment/HuaweicloudSmnProcessor.java b/extensions-jvm/huaweicloud-smn/deployment/src/main/java/org/apache/camel/quarkus/component/huaweicloud/smn/deployment/HuaweicloudSmnProcessor.java index 4c72362abd19..959500bff79c 100644 --- a/extensions-jvm/huaweicloud-smn/deployment/src/main/java/org/apache/camel/quarkus/component/huaweicloud/smn/deployment/HuaweicloudSmnProcessor.java +++ b/extensions-jvm/huaweicloud-smn/deployment/src/main/java/org/apache/camel/quarkus/component/huaweicloud/smn/deployment/HuaweicloudSmnProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/iec60870/deployment/src/main/java/org/apache/camel/quarkus/component/iec60870/deployment/Iec60870Processor.java b/extensions-jvm/iec60870/deployment/src/main/java/org/apache/camel/quarkus/component/iec60870/deployment/Iec60870Processor.java index dc9ab613c629..20c4e718af02 100644 --- a/extensions-jvm/iec60870/deployment/src/main/java/org/apache/camel/quarkus/component/iec60870/deployment/Iec60870Processor.java +++ b/extensions-jvm/iec60870/deployment/src/main/java/org/apache/camel/quarkus/component/iec60870/deployment/Iec60870Processor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/ignite/deployment/src/main/java/org/apache/camel/quarkus/component/ignite/deployment/IgniteProcessor.java b/extensions-jvm/ignite/deployment/src/main/java/org/apache/camel/quarkus/component/ignite/deployment/IgniteProcessor.java index 314b54d4451d..1ffe0f31d151 100644 --- a/extensions-jvm/ignite/deployment/src/main/java/org/apache/camel/quarkus/component/ignite/deployment/IgniteProcessor.java +++ b/extensions-jvm/ignite/deployment/src/main/java/org/apache/camel/quarkus/component/ignite/deployment/IgniteProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/irc/deployment/src/main/java/org/apache/camel/quarkus/component/irc/deployment/IrcProcessor.java b/extensions-jvm/irc/deployment/src/main/java/org/apache/camel/quarkus/component/irc/deployment/IrcProcessor.java index 62c0619205b2..83e3270740bd 100644 --- a/extensions-jvm/irc/deployment/src/main/java/org/apache/camel/quarkus/component/irc/deployment/IrcProcessor.java +++ b/extensions-jvm/irc/deployment/src/main/java/org/apache/camel/quarkus/component/irc/deployment/IrcProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jasypt/deployment/src/main/java/org/apache/camel/quarkus/component/jasypt/deployment/JasyptProcessor.java b/extensions-jvm/jasypt/deployment/src/main/java/org/apache/camel/quarkus/component/jasypt/deployment/JasyptProcessor.java index 20fe3d87a36a..67ede49a0dba 100644 --- a/extensions-jvm/jasypt/deployment/src/main/java/org/apache/camel/quarkus/component/jasypt/deployment/JasyptProcessor.java +++ b/extensions-jvm/jasypt/deployment/src/main/java/org/apache/camel/quarkus/component/jasypt/deployment/JasyptProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jcr/deployment/src/main/java/org/apache/camel/quarkus/component/jcr/deployment/JcrProcessor.java b/extensions-jvm/jcr/deployment/src/main/java/org/apache/camel/quarkus/component/jcr/deployment/JcrProcessor.java index 321a1fbb1d37..268bcc3a16da 100644 --- a/extensions-jvm/jcr/deployment/src/main/java/org/apache/camel/quarkus/component/jcr/deployment/JcrProcessor.java +++ b/extensions-jvm/jcr/deployment/src/main/java/org/apache/camel/quarkus/component/jcr/deployment/JcrProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jgroups-raft/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/raft/deployment/JgroupsRaftProcessor.java b/extensions-jvm/jgroups-raft/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/raft/deployment/JgroupsRaftProcessor.java index 44c37b5c5a36..8748bf94b932 100644 --- a/extensions-jvm/jgroups-raft/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/raft/deployment/JgroupsRaftProcessor.java +++ b/extensions-jvm/jgroups-raft/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/raft/deployment/JgroupsRaftProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jgroups/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/deployment/JgroupsProcessor.java b/extensions-jvm/jgroups/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/deployment/JgroupsProcessor.java index 139dd94679ca..dbab62b59435 100644 --- a/extensions-jvm/jgroups/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/deployment/JgroupsProcessor.java +++ b/extensions-jvm/jgroups/deployment/src/main/java/org/apache/camel/quarkus/component/jgroups/deployment/JgroupsProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jooq/deployment/src/main/java/org/apache/camel/quarkus/component/jooq/deployment/JooqProcessor.java b/extensions-jvm/jooq/deployment/src/main/java/org/apache/camel/quarkus/component/jooq/deployment/JooqProcessor.java index 4c308c2e6748..783be018b1f0 100644 --- a/extensions-jvm/jooq/deployment/src/main/java/org/apache/camel/quarkus/component/jooq/deployment/JooqProcessor.java +++ b/extensions-jvm/jooq/deployment/src/main/java/org/apache/camel/quarkus/component/jooq/deployment/JooqProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/json-patch/deployment/src/main/java/org/apache/camel/quarkus/component/json/patch/deployment/JsonPatchProcessor.java b/extensions-jvm/json-patch/deployment/src/main/java/org/apache/camel/quarkus/component/json/patch/deployment/JsonPatchProcessor.java index 0e90409a1dc0..58bfde78f6a8 100644 --- a/extensions-jvm/json-patch/deployment/src/main/java/org/apache/camel/quarkus/component/json/patch/deployment/JsonPatchProcessor.java +++ b/extensions-jvm/json-patch/deployment/src/main/java/org/apache/camel/quarkus/component/json/patch/deployment/JsonPatchProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jsonapi/deployment/src/main/java/org/apache/camel/quarkus/component/jsonapi/deployment/JsonapiProcessor.java b/extensions-jvm/jsonapi/deployment/src/main/java/org/apache/camel/quarkus/component/jsonapi/deployment/JsonapiProcessor.java index 10f10b0ae0d5..baac686697db 100644 --- a/extensions-jvm/jsonapi/deployment/src/main/java/org/apache/camel/quarkus/component/jsonapi/deployment/JsonapiProcessor.java +++ b/extensions-jvm/jsonapi/deployment/src/main/java/org/apache/camel/quarkus/component/jsonapi/deployment/JsonapiProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/jt400/deployment/src/main/java/org/apache/camel/quarkus/component/jt400/deployment/Jt400Processor.java b/extensions-jvm/jt400/deployment/src/main/java/org/apache/camel/quarkus/component/jt400/deployment/Jt400Processor.java index 5c49d441dd45..c4de350fb0e3 100644 --- a/extensions-jvm/jt400/deployment/src/main/java/org/apache/camel/quarkus/component/jt400/deployment/Jt400Processor.java +++ b/extensions-jvm/jt400/deployment/src/main/java/org/apache/camel/quarkus/component/jt400/deployment/Jt400Processor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/ldif/deployment/src/main/java/org/apache/camel/quarkus/component/ldif/deployment/LdifProcessor.java b/extensions-jvm/ldif/deployment/src/main/java/org/apache/camel/quarkus/component/ldif/deployment/LdifProcessor.java index 5ab73b5210d1..d17aba3c201d 100644 --- a/extensions-jvm/ldif/deployment/src/main/java/org/apache/camel/quarkus/component/ldif/deployment/LdifProcessor.java +++ b/extensions-jvm/ldif/deployment/src/main/java/org/apache/camel/quarkus/component/ldif/deployment/LdifProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/lucene/deployment/src/main/java/org/apache/camel/quarkus/component/lucene/deployment/LuceneProcessor.java b/extensions-jvm/lucene/deployment/src/main/java/org/apache/camel/quarkus/component/lucene/deployment/LuceneProcessor.java index 443c0ab612a1..00b282dd8e8b 100644 --- a/extensions-jvm/lucene/deployment/src/main/java/org/apache/camel/quarkus/component/lucene/deployment/LuceneProcessor.java +++ b/extensions-jvm/lucene/deployment/src/main/java/org/apache/camel/quarkus/component/lucene/deployment/LuceneProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/mvel/deployment/src/main/java/org/apache/camel/quarkus/component/mvel/deployment/MvelProcessor.java b/extensions-jvm/mvel/deployment/src/main/java/org/apache/camel/quarkus/component/mvel/deployment/MvelProcessor.java index 778385bcfa2d..fb26983acbe4 100644 --- a/extensions-jvm/mvel/deployment/src/main/java/org/apache/camel/quarkus/component/mvel/deployment/MvelProcessor.java +++ b/extensions-jvm/mvel/deployment/src/main/java/org/apache/camel/quarkus/component/mvel/deployment/MvelProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/printer/deployment/src/main/java/org/apache/camel/quarkus/component/printer/deployment/PrinterProcessor.java b/extensions-jvm/printer/deployment/src/main/java/org/apache/camel/quarkus/component/printer/deployment/PrinterProcessor.java index cd89e4cd696f..0c6414d04988 100644 --- a/extensions-jvm/printer/deployment/src/main/java/org/apache/camel/quarkus/component/printer/deployment/PrinterProcessor.java +++ b/extensions-jvm/printer/deployment/src/main/java/org/apache/camel/quarkus/component/printer/deployment/PrinterProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/pulsar/deployment/src/main/java/org/apache/camel/quarkus/component/pulsar/deployment/PulsarProcessor.java b/extensions-jvm/pulsar/deployment/src/main/java/org/apache/camel/quarkus/component/pulsar/deployment/PulsarProcessor.java index 8ea2703d23d3..2f688f6b9f84 100644 --- a/extensions-jvm/pulsar/deployment/src/main/java/org/apache/camel/quarkus/component/pulsar/deployment/PulsarProcessor.java +++ b/extensions-jvm/pulsar/deployment/src/main/java/org/apache/camel/quarkus/component/pulsar/deployment/PulsarProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/quickfix/deployment/src/main/java/org/apache/camel/quarkus/component/quickfix/deployment/QuickfixProcessor.java b/extensions-jvm/quickfix/deployment/src/main/java/org/apache/camel/quarkus/component/quickfix/deployment/QuickfixProcessor.java index d58c0eba20ca..894e5cd890b3 100644 --- a/extensions-jvm/quickfix/deployment/src/main/java/org/apache/camel/quarkus/component/quickfix/deployment/QuickfixProcessor.java +++ b/extensions-jvm/quickfix/deployment/src/main/java/org/apache/camel/quarkus/component/quickfix/deployment/QuickfixProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/redis/deployment/src/main/java/org/apache/camel/quarkus/component/redis/deployment/RedisProcessor.java b/extensions-jvm/redis/deployment/src/main/java/org/apache/camel/quarkus/component/redis/deployment/RedisProcessor.java index b78a9dbd0ad7..c6fe95d3b963 100644 --- a/extensions-jvm/redis/deployment/src/main/java/org/apache/camel/quarkus/component/redis/deployment/RedisProcessor.java +++ b/extensions-jvm/redis/deployment/src/main/java/org/apache/camel/quarkus/component/redis/deployment/RedisProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/robotframework/deployment/src/main/java/org/apache/camel/quarkus/component/robotframework/deployment/RobotframeworkProcessor.java b/extensions-jvm/robotframework/deployment/src/main/java/org/apache/camel/quarkus/component/robotframework/deployment/RobotframeworkProcessor.java index c180b9b01bf5..bfee9160fae5 100644 --- a/extensions-jvm/robotframework/deployment/src/main/java/org/apache/camel/quarkus/component/robotframework/deployment/RobotframeworkProcessor.java +++ b/extensions-jvm/robotframework/deployment/src/main/java/org/apache/camel/quarkus/component/robotframework/deployment/RobotframeworkProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/schematron/deployment/src/main/java/org/apache/camel/quarkus/component/schematron/deployment/SchematronProcessor.java b/extensions-jvm/schematron/deployment/src/main/java/org/apache/camel/quarkus/component/schematron/deployment/SchematronProcessor.java index 26055663218e..1ca6f37af009 100644 --- a/extensions-jvm/schematron/deployment/src/main/java/org/apache/camel/quarkus/component/schematron/deployment/SchematronProcessor.java +++ b/extensions-jvm/schematron/deployment/src/main/java/org/apache/camel/quarkus/component/schematron/deployment/SchematronProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/smpp/deployment/src/main/java/org/apache/camel/quarkus/component/smpp/deployment/SmppProcessor.java b/extensions-jvm/smpp/deployment/src/main/java/org/apache/camel/quarkus/component/smpp/deployment/SmppProcessor.java index 28ecaf0dea62..a8434de9b00b 100644 --- a/extensions-jvm/smpp/deployment/src/main/java/org/apache/camel/quarkus/component/smpp/deployment/SmppProcessor.java +++ b/extensions-jvm/smpp/deployment/src/main/java/org/apache/camel/quarkus/component/smpp/deployment/SmppProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/snmp/deployment/src/main/java/org/apache/camel/quarkus/component/snmp/deployment/SnmpProcessor.java b/extensions-jvm/snmp/deployment/src/main/java/org/apache/camel/quarkus/component/snmp/deployment/SnmpProcessor.java index 181f1a487f60..fee125f8e483 100644 --- a/extensions-jvm/snmp/deployment/src/main/java/org/apache/camel/quarkus/component/snmp/deployment/SnmpProcessor.java +++ b/extensions-jvm/snmp/deployment/src/main/java/org/apache/camel/quarkus/component/snmp/deployment/SnmpProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/splunk-hec/deployment/src/main/java/org/apache/camel/quarkus/component/splunk/hec/deployment/SplunkHecProcessor.java b/extensions-jvm/splunk-hec/deployment/src/main/java/org/apache/camel/quarkus/component/splunk/hec/deployment/SplunkHecProcessor.java index ada0a0889d56..e0a44035d592 100644 --- a/extensions-jvm/splunk-hec/deployment/src/main/java/org/apache/camel/quarkus/component/splunk/hec/deployment/SplunkHecProcessor.java +++ b/extensions-jvm/splunk-hec/deployment/src/main/java/org/apache/camel/quarkus/component/splunk/hec/deployment/SplunkHecProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/stitch/deployment/src/main/java/org/apache/camel/quarkus/component/stitch/deployment/StitchProcessor.java b/extensions-jvm/stitch/deployment/src/main/java/org/apache/camel/quarkus/component/stitch/deployment/StitchProcessor.java index 337d84245893..011cdb471993 100644 --- a/extensions-jvm/stitch/deployment/src/main/java/org/apache/camel/quarkus/component/stitch/deployment/StitchProcessor.java +++ b/extensions-jvm/stitch/deployment/src/main/java/org/apache/camel/quarkus/component/stitch/deployment/StitchProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/stomp/deployment/src/main/java/org/apache/camel/quarkus/component/stomp/deployment/StompProcessor.java b/extensions-jvm/stomp/deployment/src/main/java/org/apache/camel/quarkus/component/stomp/deployment/StompProcessor.java index de07779fb6a1..8e5abf5c5985 100644 --- a/extensions-jvm/stomp/deployment/src/main/java/org/apache/camel/quarkus/component/stomp/deployment/StompProcessor.java +++ b/extensions-jvm/stomp/deployment/src/main/java/org/apache/camel/quarkus/component/stomp/deployment/StompProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/stub/deployment/src/main/java/org/apache/camel/quarkus/component/stub/deployment/StubProcessor.java b/extensions-jvm/stub/deployment/src/main/java/org/apache/camel/quarkus/component/stub/deployment/StubProcessor.java index 377f12e1c718..bd26ef4517b8 100644 --- a/extensions-jvm/stub/deployment/src/main/java/org/apache/camel/quarkus/component/stub/deployment/StubProcessor.java +++ b/extensions-jvm/stub/deployment/src/main/java/org/apache/camel/quarkus/component/stub/deployment/StubProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/thrift/deployment/src/main/java/org/apache/camel/quarkus/component/thrift/deployment/ThriftProcessor.java b/extensions-jvm/thrift/deployment/src/main/java/org/apache/camel/quarkus/component/thrift/deployment/ThriftProcessor.java index 420fd49f32ac..003f095537ac 100644 --- a/extensions-jvm/thrift/deployment/src/main/java/org/apache/camel/quarkus/component/thrift/deployment/ThriftProcessor.java +++ b/extensions-jvm/thrift/deployment/src/main/java/org/apache/camel/quarkus/component/thrift/deployment/ThriftProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/web3j/deployment/src/main/java/org/apache/camel/quarkus/component/web3j/deployment/Web3jProcessor.java b/extensions-jvm/web3j/deployment/src/main/java/org/apache/camel/quarkus/component/web3j/deployment/Web3jProcessor.java index 309719289645..0b2b9009ee85 100644 --- a/extensions-jvm/web3j/deployment/src/main/java/org/apache/camel/quarkus/component/web3j/deployment/Web3jProcessor.java +++ b/extensions-jvm/web3j/deployment/src/main/java/org/apache/camel/quarkus/component/web3j/deployment/Web3jProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/wordpress/deployment/src/main/java/org/apache/camel/quarkus/component/wordpress/deployment/WordpressProcessor.java b/extensions-jvm/wordpress/deployment/src/main/java/org/apache/camel/quarkus/component/wordpress/deployment/WordpressProcessor.java index 59fedd7fc4f0..1f1f1b917d0b 100644 --- a/extensions-jvm/wordpress/deployment/src/main/java/org/apache/camel/quarkus/component/wordpress/deployment/WordpressProcessor.java +++ b/extensions-jvm/wordpress/deployment/src/main/java/org/apache/camel/quarkus/component/wordpress/deployment/WordpressProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/workday/deployment/src/main/java/org/apache/camel/quarkus/component/workday/deployment/WorkdayProcessor.java b/extensions-jvm/workday/deployment/src/main/java/org/apache/camel/quarkus/component/workday/deployment/WorkdayProcessor.java index c8d351a5fb49..c8447ba39984 100644 --- a/extensions-jvm/workday/deployment/src/main/java/org/apache/camel/quarkus/component/workday/deployment/WorkdayProcessor.java +++ b/extensions-jvm/workday/deployment/src/main/java/org/apache/camel/quarkus/component/workday/deployment/WorkdayProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/xj/deployment/src/main/java/org/apache/camel/quarkus/component/xj/deployment/XjProcessor.java b/extensions-jvm/xj/deployment/src/main/java/org/apache/camel/quarkus/component/xj/deployment/XjProcessor.java index 5ef8442fab85..21b2949511a3 100644 --- a/extensions-jvm/xj/deployment/src/main/java/org/apache/camel/quarkus/component/xj/deployment/XjProcessor.java +++ b/extensions-jvm/xj/deployment/src/main/java/org/apache/camel/quarkus/component/xj/deployment/XjProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/xmpp/deployment/src/main/java/org/apache/camel/quarkus/component/xmpp/deployment/XmppProcessor.java b/extensions-jvm/xmpp/deployment/src/main/java/org/apache/camel/quarkus/component/xmpp/deployment/XmppProcessor.java index 544eb6f3e616..103e85ab0e13 100644 --- a/extensions-jvm/xmpp/deployment/src/main/java/org/apache/camel/quarkus/component/xmpp/deployment/XmppProcessor.java +++ b/extensions-jvm/xmpp/deployment/src/main/java/org/apache/camel/quarkus/component/xmpp/deployment/XmppProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/zookeeper-master/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/master/deployment/ZookeeperMasterProcessor.java b/extensions-jvm/zookeeper-master/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/master/deployment/ZookeeperMasterProcessor.java index ab328ba81f3e..f0663c92cf7e 100644 --- a/extensions-jvm/zookeeper-master/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/master/deployment/ZookeeperMasterProcessor.java +++ b/extensions-jvm/zookeeper-master/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/master/deployment/ZookeeperMasterProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-jvm/zookeeper/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/deployment/ZookeeperProcessor.java b/extensions-jvm/zookeeper/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/deployment/ZookeeperProcessor.java index a383f8b29b80..b7bf3ca8729e 100644 --- a/extensions-jvm/zookeeper/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/deployment/ZookeeperProcessor.java +++ b/extensions-jvm/zookeeper/deployment/src/main/java/org/apache/camel/quarkus/component/zookeeper/deployment/ZookeeperProcessor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -37,7 +37,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time diff --git a/extensions-support/dsl/deployment/src/main/java/org/apache/camel/quarkus/support/dsl/deployment/DslSupportProcessor.java b/extensions-support/dsl/deployment/src/main/java/org/apache/camel/quarkus/support/dsl/deployment/DslSupportProcessor.java index b2ac19fb29a8..64676ba0bcb9 100644 --- a/extensions-support/dsl/deployment/src/main/java/org/apache/camel/quarkus/support/dsl/deployment/DslSupportProcessor.java +++ b/extensions-support/dsl/deployment/src/main/java/org/apache/camel/quarkus/support/dsl/deployment/DslSupportProcessor.java @@ -24,7 +24,7 @@ import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.runtime.RuntimeValue; import org.apache.camel.CamelContext; import org.apache.camel.quarkus.core.deployment.spi.CamelContextBuildItem; @@ -37,7 +37,7 @@ public class DslSupportProcessor { private static final Pattern IMPORT_PATTERN = Pattern.compile("import .*"); public static final String CLASS_EXT = ".class"; - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.STATIC_INIT) void registerRoutesBuilder(List classes, CamelContextBuildItem context, diff --git a/extensions-support/spring/deployment/src/main/java/org/apache/camel/quarkus/support/spring/deployment/SpringKotlinProcessor.java b/extensions-support/spring/deployment/src/main/java/org/apache/camel/quarkus/support/spring/deployment/SpringKotlinProcessor.java index d6f6eeb7e15b..6ed096e2880c 100644 --- a/extensions-support/spring/deployment/src/main/java/org/apache/camel/quarkus/support/spring/deployment/SpringKotlinProcessor.java +++ b/extensions-support/spring/deployment/src/main/java/org/apache/camel/quarkus/support/spring/deployment/SpringKotlinProcessor.java @@ -22,12 +22,12 @@ import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.GeneratedClassBuildItem; import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.gizmo.ClassCreator; public class SpringKotlinProcessor { - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void generateKotlinReflectClasses( BuildProducer generatedClass, CurateOutcomeBuildItem curateOutcome) { diff --git a/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java b/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java index 9b75409c946b..9716f070c88d 100644 --- a/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java +++ b/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java @@ -34,7 +34,7 @@ import io.quarkus.deployment.builditem.GeneratedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.gizmo.ClassCreator; import io.quarkus.gizmo.Gizmo; import io.quarkus.gizmo.MethodCreator; @@ -105,7 +105,7 @@ void registerSchematronForReflection(BuildProducer ref .fields().build()); } - @BuildStep(onlyIf = { NativeBuild.class, IsFhirServerAbsent.class }) + @BuildStep(onlyIf = { NativeOrNativeSourcesBuild.class, IsFhirServerAbsent.class }) void generateRestfulServerUtils(BuildProducer generatedClass) { // Avoid having redundant hapi-fhir-server on the classpath and generate RestfulServerUtils.createEtag to satisfy native compilation. try (ClassCreator classCreator = ClassCreator.builder() diff --git a/extensions/groovy-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/groovy/deployment/GroovyDslProcessor.java b/extensions/groovy-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/groovy/deployment/GroovyDslProcessor.java index 6a8fd78dfd13..ff03faea7862 100644 --- a/extensions/groovy-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/groovy/deployment/GroovyDslProcessor.java +++ b/extensions/groovy-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/groovy/deployment/GroovyDslProcessor.java @@ -36,7 +36,7 @@ import io.quarkus.deployment.builditem.GeneratedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.paths.PathCollection; import org.apache.camel.CamelContext; @@ -89,7 +89,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void compileScriptsAOT(BuildProducer generatedClass, BuildProducer reflectiveClass, BuildProducer generatedGroovyClass, @@ -134,7 +134,7 @@ void compileScriptsAOT(BuildProducer generatedClass, } } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void registerReflectiveClasses( BuildProducer reflectiveClass, CombinedIndexBuildItem combinedIndexBuildItem) { diff --git a/extensions/groovy/deployment/src/main/java/org/apache/camel/quarkus/component/groovy/deployment/GroovyProcessor.java b/extensions/groovy/deployment/src/main/java/org/apache/camel/quarkus/component/groovy/deployment/GroovyProcessor.java index 53d5324d80f1..90984b0ca187 100644 --- a/extensions/groovy/deployment/src/main/java/org/apache/camel/quarkus/component/groovy/deployment/GroovyProcessor.java +++ b/extensions/groovy/deployment/src/main/java/org/apache/camel/quarkus/component/groovy/deployment/GroovyProcessor.java @@ -29,7 +29,7 @@ import io.quarkus.deployment.builditem.GeneratedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.paths.PathCollection; import io.quarkus.runtime.RuntimeValue; @@ -69,7 +69,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void collectExpressions(ExpressionExtractionResultBuildItem result, List expressions, List scripts, @@ -107,7 +107,7 @@ void collectExpressions(ExpressionExtractionResultBuildItem result, } } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void compileScriptsAOT(CurateOutcomeBuildItem curateOutcomeBuildItem, BuildProducer reflectiveClass, List sources, @@ -145,7 +145,7 @@ void compileScriptsAOT(CurateOutcomeBuildItem curateOutcomeBuildItem, } @Record(ExecutionTime.STATIC_INIT) - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) CamelBeanBuildItem configureLanguage( GroovyExpressionRecorder recorder, ExpressionExtractionResultBuildItem result, diff --git a/extensions/java-joor-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/java/joor/deployment/JavaJoorDslProcessor.java b/extensions/java-joor-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/java/joor/deployment/JavaJoorDslProcessor.java index ff3bf2c335ef..d2a0921fc9e5 100644 --- a/extensions/java-joor-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/java/joor/deployment/JavaJoorDslProcessor.java +++ b/extensions/java-joor-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/java/joor/deployment/JavaJoorDslProcessor.java @@ -35,7 +35,7 @@ import io.quarkus.deployment.builditem.nativeimage.LambdaCapturingTypeBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.paths.PathCollection; import io.quarkus.runtime.RuntimeValue; @@ -63,7 +63,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void compileClassesAOT(BuildProducer generatedClass, BuildProducer reflectiveClass, BuildProducer lambdaCapturingTypeProducer, @@ -173,7 +173,7 @@ private void registerClass(Class type, String className, boolean methods, boo } } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void registerGeneratedClasses(BuildProducer generatedClass, BuildProducer reflectiveClass, List classes) { @@ -185,7 +185,7 @@ void registerGeneratedClasses(BuildProducer generatedCl .builder(classes.stream().map(JavaJoorGeneratedClassBuildItem::getName).toArray(String[]::new)).build()); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.STATIC_INIT) void registerRoutesBuilder(List classes, CamelContextBuildItem context, diff --git a/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java b/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java index 51d2cce96974..8232ccfcd93f 100644 --- a/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java +++ b/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java @@ -40,7 +40,7 @@ import io.quarkus.deployment.builditem.CombinedIndexBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.CamelContext; import org.apache.camel.Component; import org.apache.camel.Endpoint; @@ -124,7 +124,7 @@ public class JavaScriptDslProcessor { NoOutputDefinition.class); public static final String BUILDER_CLASS_SUFFIX = "Builders"; - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void registerReflectiveClasses( BuildProducer reflectiveClass, BuildProducer reflectiveMethods, diff --git a/extensions/jsh-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/jsh/deployment/JshDslProcessor.java b/extensions/jsh-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/jsh/deployment/JshDslProcessor.java index e3f3038fb531..2c8e5f53f8c3 100644 --- a/extensions/jsh-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/jsh/deployment/JshDslProcessor.java +++ b/extensions/jsh-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/jsh/deployment/JshDslProcessor.java @@ -42,7 +42,7 @@ import io.quarkus.deployment.dev.JavaCompilationProvider; import io.quarkus.deployment.pkg.builditem.BuildSystemTargetBuildItem; import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.paths.PathCollection; import org.apache.camel.quarkus.core.deployment.main.CamelMainHelper; @@ -78,7 +78,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void compileScriptsAOT(BuildProducer generatedClass, BuildProducer generatedResource, BuildProducer reflectiveClass, diff --git a/extensions/kotlin-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/kotlin/deployment/KotlinDslProcessor.java b/extensions/kotlin-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/kotlin/deployment/KotlinDslProcessor.java index 3ada30c49cc8..413f422e429d 100644 --- a/extensions/kotlin-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/kotlin/deployment/KotlinDslProcessor.java +++ b/extensions/kotlin-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/kotlin/deployment/KotlinDslProcessor.java @@ -42,7 +42,7 @@ import io.quarkus.deployment.dev.CompilationProvider; import io.quarkus.deployment.pkg.builditem.BuildSystemTargetBuildItem; import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.kotlin.deployment.KotlinCompilationProvider; import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.paths.PathCollection; @@ -79,7 +79,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void compileScriptsAOT(BuildProducer generatedClass, BuildProducer generatedResource, BuildProducer reflectiveClass, diff --git a/extensions/ognl/deployment/src/main/java/org/apache/camel/quarkus/component/ognl/deployment/OgnlProcessor.java b/extensions/ognl/deployment/src/main/java/org/apache/camel/quarkus/component/ognl/deployment/OgnlProcessor.java index 6b3f289dbfe5..04ab1298ea89 100644 --- a/extensions/ognl/deployment/src/main/java/org/apache/camel/quarkus/component/ognl/deployment/OgnlProcessor.java +++ b/extensions/ognl/deployment/src/main/java/org/apache/camel/quarkus/component/ognl/deployment/OgnlProcessor.java @@ -25,7 +25,7 @@ import io.quarkus.deployment.builditem.CombinedIndexBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.language.ognl.RootObject; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; @@ -39,7 +39,7 @@ FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void registerReflectiveClasses(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer reflectiveClass) { IndexView view = combinedIndexBuildItem.getIndex(); diff --git a/tooling/create-extension-templates/Processor.java b/tooling/create-extension-templates/Processor.java index cc5d10b6ee4e..49431c4f7500 100644 --- a/tooling/create-extension-templates/Processor.java +++ b/tooling/create-extension-templates/Processor.java @@ -20,7 +20,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeBuild; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import org.apache.camel.quarkus.core.JvmOnlyRecorder; import org.jboss.logging.Logger; @@ -39,7 +39,7 @@ FeatureBuildItem feature() { /** * Remove this once this extension starts supporting the native mode. */ - @BuildStep(onlyIf = NativeBuild.class) + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) @Record(value = ExecutionTime.RUNTIME_INIT) void warnJvmInNative(JvmOnlyRecorder recorder) { JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time