This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push: new 4c86d42af1 Fix #3823 make quarkus-agroal an optional dependency in camel-quarkus-quartz 4c86d42af1 is described below commit 4c86d42af1d4a70985a4986b538edabd18fa7c01 Author: Zheng Feng <zh.f...@gmail.com> AuthorDate: Mon Jun 6 09:31:38 2022 +0800 Fix #3823 make quarkus-agroal an optional dependency in camel-quarkus-quartz --- docs/modules/ROOT/pages/reference/extensions/quartz.adoc | 9 +++++++++ extensions/quartz/deployment/pom.xml | 4 ---- extensions/quartz/runtime/pom.xml | 1 + extensions/quartz/runtime/src/main/doc/usage.adoc | 11 ++++++++++- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/docs/modules/ROOT/pages/reference/extensions/quartz.adoc b/docs/modules/ROOT/pages/reference/extensions/quartz.adoc index d067263645..9ddb850b18 100644 --- a/docs/modules/ROOT/pages/reference/extensions/quartz.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/quartz.adoc @@ -56,6 +56,15 @@ This is the preferred option. Follow the https://quarkus.io/guides/quartz[schedu Follow the http://www.quartz-scheduler.org/documentation/quartz-1.8.6/configuration/ConfigJDBCJobStoreClustering.html#configure-clustering-with-jdbc-jobstore[Configure Clustering with JDBC-JobStore Guide] with different DS configuration: +- Declare to use `io.quarkus:quarkus-agroal` in `pom.xml` explicitly. + +``` +<dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-agroal</artifactId> +</dependency> +``` + - Use `quartz.properties` to configure the `JobStore`. - Define a datasource via quarkus (see the https://quarkus.io/guides/datasource[Quarkus datasource documentation)] and use `CamelQuarkusQuartzConnectionProvider` as the `ConnectionProvider` in `quartz.properties`: diff --git a/extensions/quartz/deployment/pom.xml b/extensions/quartz/deployment/pom.xml index 0a58fe6da3..bb33ca9758 100644 --- a/extensions/quartz/deployment/pom.xml +++ b/extensions/quartz/deployment/pom.xml @@ -48,10 +48,6 @@ <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-quartz</artifactId> </dependency> - <dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-agroal-deployment</artifactId> - </dependency> </dependencies> <build> diff --git a/extensions/quartz/runtime/pom.xml b/extensions/quartz/runtime/pom.xml index f1b540ce7d..7c126e1934 100644 --- a/extensions/quartz/runtime/pom.xml +++ b/extensions/quartz/runtime/pom.xml @@ -56,6 +56,7 @@ <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-agroal</artifactId> + <optional>true</optional> </dependency> <dependency> <groupId>org.graalvm.nativeimage</groupId> diff --git a/extensions/quartz/runtime/src/main/doc/usage.adoc b/extensions/quartz/runtime/src/main/doc/usage.adoc index 9f88f6dbe3..10f0bb9000 100644 --- a/extensions/quartz/runtime/src/main/doc/usage.adoc +++ b/extensions/quartz/runtime/src/main/doc/usage.adoc @@ -13,6 +13,15 @@ This is the preferred option. Follow the https://quarkus.io/guides/quartz[schedu Follow the http://www.quartz-scheduler.org/documentation/quartz-1.8.6/configuration/ConfigJDBCJobStoreClustering.html#configure-clustering-with-jdbc-jobstore[Configure Clustering with JDBC-JobStore Guide] with different DS configuration: +- Declare to use `io.quarkus:quarkus-agroal` in `pom.xml` explicitly. + +``` +<dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-agroal</artifactId> +</dependency> +``` + - Use `quartz.properties` to configure the `JobStore`. - Define a datasource via quarkus (see the https://quarkus.io/guides/datasource[Quarkus datasource documentation)] and use `CamelQuarkusQuartzConnectionProvider` as the `ConnectionProvider` in `quartz.properties`: @@ -43,4 +52,4 @@ org.quartz.dataSource.myDS.driver = org.postgresql.Driver org.quartz.dataSource.myDS.URL=jdbc:postgresql://localhost:5432/default org.quartz.dataSource.myDS.user = quarkus org.quartz.dataSource.myDS.password = quarkus -``` \ No newline at end of file +```