This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit aff598cc5dd12c79ae76c87afc4cf7ce2decb7b4 Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Tue Dec 19 10:11:42 2023 +0100 fix(ci): quarkus native build still legacy way in 3.6.0 --- pkg/builder/runtime_support.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/builder/runtime_support.go b/pkg/builder/runtime_support.go index a230c8882..0fdb6514b 100644 --- a/pkg/builder/runtime_support.go +++ b/pkg/builder/runtime_support.go @@ -21,7 +21,7 @@ import "path/filepath" // QuarkusRuntimeNativeAdapter is used to get the proper Quarkus native configuration which may be different // in Camel Quarkus version. It is known that before Camel Quarkus 3.5 there was no support to native-source, -// and using this interface will adapt the configuration to build natively according the previous configuration. +// and using this interface will adapt the configuration to build natively according each version expected configuration. type QuarkusRuntimeNativeAdapter interface { // The commands used to build a native application BuildCommands() string @@ -85,7 +85,10 @@ func (n *NativeAdapter) NativeMavenProperty() string { // QuarkusRuntimeSupport is used to get the proper native configuration based on the Camel Quarkus version. func QuarkusRuntimeSupport(version string) QuarkusRuntimeNativeAdapter { - if version < "3.5.0" { + // Version 3.6.0 depends on a parameter which is available on JDK-21 based image. + // For this reason we fallback to the "legacy" Quarkus native build. + // Hopefully this will be solved starting from runtime version 3.7.0. + if version < "3.7.0" { return &NativeAdapter{} } return &NativeSourcesAdapter{}