diff --git a/horreum-backend/pom.xml b/horreum-backend/pom.xml index f53885771..37d20bbe7 100644 --- a/horreum-backend/pom.xml +++ b/horreum-backend/pom.xml @@ -72,10 +72,6 @@ io.quarkus quarkus-jdbc-postgresql - - io.quarkus - quarkus-reactive-pg-client - io.quarkus quarkus-rest-jackson diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/ReactiveUrlConfigSourceFactory.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/ReactiveUrlConfigSourceFactory.java deleted file mode 100644 index 781890fd7..000000000 --- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/ReactiveUrlConfigSourceFactory.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.hyperfoil.tools.horreum; - -import java.util.Collections; -import java.util.Map; - -import org.eclipse.microprofile.config.spi.ConfigSource; - -import io.smallrye.config.ConfigSourceContext; -import io.smallrye.config.ConfigSourceFactory; -import io.smallrye.config.ConfigValue; -import io.smallrye.config.PropertiesConfigSource; - -public class ReactiveUrlConfigSourceFactory implements ConfigSourceFactory { - private static final String QUARKUS_DATASOURCE_JDBC_URL = "quarkus.datasource.jdbc.url"; - private static final String QUARKUS_DATASOURCE_REACTIVE_URL = "quarkus.datasource.reactive.url"; - - @Override - public Iterable getConfigSources(ConfigSourceContext context) { - ConfigValue value = context.getValue(QUARKUS_DATASOURCE_JDBC_URL); - if (value == null || value.getValue() == null) { - return Collections.emptyList(); - } - String url = value.getValue(); - if (url.startsWith("jdbc:")) { - url = url.substring(5); - } - return Collections.singleton(new PropertiesConfigSource(Map.of(QUARKUS_DATASOURCE_REACTIVE_URL, url), "horreum", 275)); - } -} diff --git a/horreum-backend/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceFactory b/horreum-backend/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceFactory deleted file mode 100644 index eaa9300ea..000000000 --- a/horreum-backend/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceFactory +++ /dev/null @@ -1 +0,0 @@ -io.hyperfoil.tools.horreum.ReactiveUrlConfigSourceFactory \ No newline at end of file diff --git a/horreum-backend/src/main/resources/application.properties b/horreum-backend/src/main/resources/application.properties index b736827d2..50446ee98 100644 --- a/horreum-backend/src/main/resources/application.properties +++ b/horreum-backend/src/main/resources/application.properties @@ -1,13 +1,6 @@ ## Datasource managed by the app # using my docker0 IP -# disable the default reactive datasource -quarkus.datasource.reactive=false -quarkus.datasource.migration.reactive=false -# disable the reactive JDBC datasource -quarkus.datasource.react.jdbc=false -quarkus.datasource.migration.react.jdbc=false - # disable elasticsearch healthcheck quarkus.elasticsearch.health.enabled=false