This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new d736a54d849 camel-jbang - Auto detect vault properties functions for
JAR download
d736a54d849 is described below
commit d736a54d849afb871e16a02bde593c8099c01c6b
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri May 10 07:00:08 2024 +0200
camel-jbang - Auto detect vault properties functions for JAR download
---
...ndencyDownloaderPropertiesFunctionResolver.java | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolver.java
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolver.java
index 280b78022d0..fdcdbe4e1db 100644
---
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolver.java
+++
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolver.java
@@ -49,6 +49,34 @@ public class DependencyDownloaderPropertiesFunctionResolver
extends DefaultPrope
getCamelContext().getVersion());
}
}
+ if ("aws".equals(name)) {
+ if (downloader != null &&
!downloader.alreadyOnClasspath("org.apache.camel", "camel-aws-secrets-manager",
+ getCamelContext().getVersion())) {
+ downloader.downloadDependency("org.apache.camel",
"camel-aws-secrets-manager",
+ getCamelContext().getVersion());
+ }
+ }
+ if ("azure".equals(name)) {
+ if (downloader != null &&
!downloader.alreadyOnClasspath("org.apache.camel", "camel-azure-key-vault",
+ getCamelContext().getVersion())) {
+ downloader.downloadDependency("org.apache.camel",
"camel-azure-key-vault",
+ getCamelContext().getVersion());
+ }
+ }
+ if ("gcp".equals(name)) {
+ if (downloader != null &&
!downloader.alreadyOnClasspath("org.apache.camel",
"camel-google-secret-manager",
+ getCamelContext().getVersion())) {
+ downloader.downloadDependency("org.apache.camel",
"camel-google-secret-manager",
+ getCamelContext().getVersion());
+ }
+ }
+ if ("hashicorp".equals(name)) {
+ if (downloader != null &&
!downloader.alreadyOnClasspath("org.apache.camel", "camel-hashicorp-vault",
+ getCamelContext().getVersion())) {
+ downloader.downloadDependency("org.apache.camel",
"camel-hashicorp-vault",
+ getCamelContext().getVersion());
+ }
+ }
return super.resolvePropertiesFunction(name);
}
}