You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gi...@apache.org on 2020/09/01 04:16:39 UTC

[camel-quarkus] branch quarkus-master updated (1a70c1a -> 71de5a6)

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

github-bot pushed a change to branch quarkus-master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.


 discard 1a70c1a  Upgrade to Quarkus 1.8.0 - WIP
     add f251bbf  Fix Twitter itest to wait for latest sent message
     new 71de5a6  Upgrade to Quarkus 1.8.0 - WIP

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (1a70c1a)
            \
             N -- N -- N   refs/heads/quarkus-master (71de5a6)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/camel/quarkus/component/twitter/CamelResource.java |  3 ++-
 .../camel/quarkus/component/twitter/CamelTwitterTest.java     | 11 ++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)


[camel-quarkus] 01/01: Upgrade to Quarkus 1.8.0 - WIP

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch quarkus-master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 71de5a614227c28a36ac3b5e5e8860b09b238192
Author: James Netherton <ja...@gmail.com>
AuthorDate: Mon Aug 3 08:28:35 2020 +0100

    Upgrade to Quarkus 1.8.0 - WIP
---
 .../component/jpa/deployment/JpaProcessor.java     | 24 +++++-----------------
 pom.xml                                            |  2 +-
 2 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/extensions/jpa/deployment/src/main/java/org/apache/camel/quarkus/component/jpa/deployment/JpaProcessor.java b/extensions/jpa/deployment/src/main/java/org/apache/camel/quarkus/component/jpa/deployment/JpaProcessor.java
index 10be6fb..d2dc9bf 100644
--- a/extensions/jpa/deployment/src/main/java/org/apache/camel/quarkus/component/jpa/deployment/JpaProcessor.java
+++ b/extensions/jpa/deployment/src/main/java/org/apache/camel/quarkus/component/jpa/deployment/JpaProcessor.java
@@ -16,16 +16,11 @@
  */
 package org.apache.camel.quarkus.component.jpa.deployment;
 
-import java.util.List;
-
-import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
 import io.quarkus.deployment.annotations.BuildProducer;
 import io.quarkus.deployment.annotations.BuildStep;
 import io.quarkus.deployment.annotations.ExecutionTime;
 import io.quarkus.deployment.annotations.Record;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.hibernate.orm.deployment.PersistenceUnitDescriptorBuildItem;
-import io.quarkus.hibernate.orm.runtime.DefaultEntityManagerFactoryProducer;
 import org.apache.camel.component.jpa.JpaComponent;
 import org.apache.camel.quarkus.component.jpa.CamelJpaRecorder;
 import org.apache.camel.quarkus.core.deployment.spi.CamelRuntimeBeanBuildItem;
@@ -43,21 +38,12 @@ class JpaProcessor {
     @BuildStep
     void configureJpaComponentBean(
             BuildProducer<CamelRuntimeBeanBuildItem> camelRuntimeBean,
-            BuildProducer<AdditionalBeanBuildItem> additionalBeans,
-            List<PersistenceUnitDescriptorBuildItem> descriptors,
             CamelJpaRecorder recorder) {
 
-        // If there's only 1 persistent unit, then auto configure the JPA component with the EntityManagerFactory
-        if (descriptors.size() == 1) {
-            // Set DefaultEntityManagerFactoryProducer as unremovable as there's no hard requirement for Camel users to @Inject EntityManagerFactory
-            AdditionalBeanBuildItem bean = AdditionalBeanBuildItem.unremovableOf(DefaultEntityManagerFactoryProducer.class);
-            additionalBeans.produce(bean);
-
-            camelRuntimeBean.produce(
-                    new CamelRuntimeBeanBuildItem(
-                            "jpa",
-                            JpaComponent.class.getName(),
-                            recorder.createJpaComponent()));
-        }
+        camelRuntimeBean.produce(
+                new CamelRuntimeBeanBuildItem(
+                        "jpa",
+                        JpaComponent.class.getName(),
+                        recorder.createJpaComponent()));
     }
 }
diff --git a/pom.xml b/pom.xml
index 751f41c..37fb13f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
         <nimbus-jose-jwt.version>4.41.1</nimbus-jose-jwt.version><!-- Mess in hdfs transitive deps -->
         <okhttp.version>3.14.6</okhttp.version><!-- keep in sync with okio -->
         <okio.version>1.17.2</okio.version><!-- keep in sync with okhttp -->
-        <quarkus.version>1.7.1.Final</quarkus.version>
+        <quarkus.version>999-SNAPSHOT</quarkus.version>
         <quarkus-qpid-jms.version>0.17.0</quarkus-qpid-jms.version>
         <protobuf.version>3.11.1</protobuf.version>
         <retrofit.version>2.5.0</retrofit.version>