essobedo opened a new pull request, #4403: URL: https://github.com/apache/camel-quarkus/pull/4403
fixes #4392 ## Motivation To support routes written in Kotlin language in Camel-K, we have to make the extension `kotlin-dsl` compatible with the native mode. ## Modifications The main idea is to compile the Kotlin resources at build time and ignore runtime compilation requests. * Move the extension to native using the `promote` mojo * Convert the Kotlin scripts into Kotlin classes to be able to compile them as normal classes * Compile Kotlin resources thanks to `KotlinCompilationProvider` and declare the result as generated * Instantiate and register the `RoutesBuilder` at runtime * Substitute the body of the method `KotlinRoutesBuilderLoader#doLoadRoutesBuilders` to do nothing at runtime * Changes the IT the same way as for the Java jOOR DSL ## Result Routes written in Kotlin resources can be compiled and included in the native image. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
