Skip to content

Commit

Permalink
Add cron capability #255
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Mar 9, 2020
1 parent 6b702b8 commit a3d73f8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
catalog.setRuntimeProvider(new DefaultRuntimeProvider());
runtimeSpec.applicationClass("org.apache.camel.k.main.Application");
runtimeSpec.addDependency("org.apache.camel.k", "camel-k-runtime-main");
runtimeSpec.putCapability(
"cron",
CamelCapability.forArtifact("org.apache.camel.k", "camel-k-runtime-cron"));
runtimeSpec.putCapability(
"health",
CamelCapability.forArtifact("org.apache.camel.k", "camel-k-runtime-health"));
Expand All @@ -137,6 +140,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
catalog.setRuntimeProvider(new QuarkusRuntimeProvider());
runtimeSpec.applicationClass("io.quarkus.runner.GeneratedMain");
runtimeSpec.addDependency("org.apache.camel.k", "camel-k-runtime-quarkus");
runtimeSpec.putCapability(
"cron",
CamelCapability.forArtifact("org.apache.camel.k", "camel-k-runtime-cron"));
runtimeSpec.putCapability(
"health",
CamelCapability.forArtifact("org.apache.camel.quarkus", "camel-quarkus-microprofile-health"));
Expand Down

0 comments on commit a3d73f8

Please sign in to comment.