This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to branch 2.7.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 3819da30cf8d388c6ff86fa46a426657440fa2b5
Author: Zheng Feng <[email protected]>
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 344d4f37ba..72936b8a2b 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 8cfcee8f62..bc82c045f5 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
+```

Reply via email to