This is an automated email from the ASF dual-hosted git repository. aldettinger pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new 7e117d3 Removed the forced Postgres driver registration, no more needed with Quarkus 1.9 7e117d3 is described below commit 7e117d324cb3461f298ab262cab2274cd21aff8e Author: aldettinger <aldettin...@gmail.com> AuthorDate: Fri Oct 9 19:50:19 2020 +0200 Removed the forced Postgres driver registration, no more needed with Quarkus 1.9 --- .../deployment/PgReplicationSlotProcessor.java | 8 ------ .../slot/PostgresDriverRegistrationRecorder.java | 32 ---------------------- 2 files changed, 40 deletions(-) diff --git a/extensions/pg-replication-slot/deployment/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/deployment/PgReplicationSlotProcessor.java b/extensions/pg-replication-slot/deployment/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/deployment/PgReplicationSlotProcessor.java index f0bf2f0..ab1212e 100644 --- a/extensions/pg-replication-slot/deployment/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/deployment/PgReplicationSlotProcessor.java +++ b/extensions/pg-replication-slot/deployment/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/deployment/PgReplicationSlotProcessor.java @@ -17,10 +17,7 @@ package org.apache.camel.quarkus.component.pg.replication.slot.deployment; 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 org.apache.camel.quarkus.component.pg.replication.slot.PostgresDriverRegistrationRecorder; class PgReplicationSlotProcessor { @@ -31,9 +28,4 @@ class PgReplicationSlotProcessor { return new FeatureBuildItem(FEATURE); } - @BuildStep - @Record(ExecutionTime.STATIC_INIT) - public void registerPostgresDriver(PostgresDriverRegistrationRecorder recorder) { - recorder.registerPostgresDriver(); - } } diff --git a/extensions/pg-replication-slot/runtime/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/PostgresDriverRegistrationRecorder.java b/extensions/pg-replication-slot/runtime/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/PostgresDriverRegistrationRecorder.java deleted file mode 100644 index 56b57f3..0000000 --- a/extensions/pg-replication-slot/runtime/src/main/java/org/apache/camel/quarkus/component/pg/replication/slot/PostgresDriverRegistrationRecorder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.quarkus.component.pg.replication.slot; - -import io.quarkus.runtime.annotations.Recorder; -import org.postgresql.Driver; - -/** - * Forces the Postgres driver registration to workaround https://github.com/quarkusio/quarkus/issues/12116. - */ -@Recorder -public class PostgresDriverRegistrationRecorder { - - public void registerPostgresDriver() { - new Driver(); - } - -}