Revert "CAMEL-14268: Upgrade to smallrye-config 1.5"
This reverts commit 04dfa37420ddc4b0e848bbbba66b601d756d7a01.
diff --git a/components/camel-microprofile-config/pom.xml b/components/camel-microprofile-config/pom.xml
index 4bb6dd5..9927b3b 100644
--- a/components/camel-microprofile-config/pom.xml
+++ b/components/camel-microprofile-config/pom.xml
@@ -60,7 +60,7 @@
<dependency>
<groupId>io.smallrye</groupId>
- <artifactId>smallrye-config</artifactId>
+ <artifactId>smallrye-config-1.3</artifactId>
<version>${smallrye-config-version}</version>
<scope>test</scope>
</dependency>
diff --git a/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java b/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java
index 2505af4..270eb36 100644
--- a/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java
+++ b/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java
@@ -34,8 +34,6 @@
public class CamelMicroProfilePropertiesSourceTest extends CamelTestSupport {
- private Config config;
-
@Override
protected CamelContext createCamelContext() throws Exception {
// setup MPC
@@ -46,7 +44,7 @@
// create PMC config source and register it so we can use it for testing
final PropertiesConfigSource pcs = new PropertiesConfigSource(prop, "my-smallrye-config");
- config = new SmallRyeConfigBuilder().withSources(pcs).build();
+ final Config config = new SmallRyeConfigBuilder().withSources(pcs).build();
ConfigProviderResolver.instance().registerConfig(config, CamelMicroProfilePropertiesSourceTest.class.getClassLoader());
@@ -54,14 +52,6 @@
}
@Override
- public void tearDown() throws Exception {
- if (config != null) {
- ConfigProviderResolver.instance().releaseConfig(config);
- }
- super.tearDown();
- }
-
- @Override
protected void bindToRegistry(Registry registry) throws Exception {
Properties prop = new Properties();
prop.put("who", "Camel");
diff --git a/parent/pom.xml b/parent/pom.xml
index 884f86d..5655dc1 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -567,7 +567,7 @@
<slf4j-api-version>1.7.29</slf4j-api-version>
<slf4j-version>1.7.29</slf4j-version>
<smack-version>4.3.4</smack-version>
- <smallrye-config-version>1.5.0</smallrye-config-version>
+ <smallrye-config-version>1.0.0</smallrye-config-version>
<smallrye-metrics-version>2.3.1</smallrye-metrics-version>
<smallrye-health-version>2.1.0</smallrye-health-version>
<snakeyaml-version>1.25</snakeyaml-version>