Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SmallRye Config to 3.2.1 #32316

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<microprofile-lra.version>2.0</microprofile-lra.version>
<microprofile-openapi.version>3.1</microprofile-openapi.version>
<smallrye-common.version>2.1.0</smallrye-common.version>
<smallrye-config.version>3.2.0</smallrye-config.version>
<smallrye-config.version>3.2.1</smallrye-config.version>
<smallrye-health.version>4.0.1</smallrye-health.version>
<smallrye-metrics.version>4.0.0</smallrye-metrics.version>
<smallrye-open-api.version>3.3.2</smallrye-open-api.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static java.util.stream.Collectors.toList;
import static java.util.stream.StreamSupport.stream;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand Down Expand Up @@ -304,8 +303,8 @@ void defaults() {
assertEquals("bar", defaults.bar());
assertEquals("foo", config.getValue("defaults.foo", String.class));

final List<String> propertyNames = stream(config.getPropertyNames().spliterator(), false).collect(toList());
assertFalse(propertyNames.contains("defaults.foo"));
List<String> propertyNames = stream(config.getPropertyNames().spliterator(), false).collect(toList());
assertTrue(propertyNames.contains("defaults.foo"));
}

@ConfigMapping(prefix = "converters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.RunTimeConfigurationDefaultBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.redis.client.deployment.RequestedRedisClientBuildItem;
import io.quarkus.redis.runtime.client.config.RedisConfig;
Expand Down Expand Up @@ -62,11 +61,6 @@ RequestedRedisClientBuildItem requestedRedisClientBuildItem(RedisCachesBuildTime
return new RequestedRedisClientBuildItem(buildConfig.clientName.orElse(RedisConfig.DEFAULT_CLIENT_NAME));
}

@BuildStep
RunTimeConfigurationDefaultBuildItem redisCacheByDefault() {
return new RunTimeConfigurationDefaultBuildItem("quarkus.cache.type", "redis");
}

@BuildStep
void nativeImage(BuildProducer<ReflectiveClassBuildItem> producer) {
producer.produce(ReflectiveClassBuildItem.builder(CompositeCacheKey.class).methods(true).build());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# To override "quarkus.cache.type" io.quarkus.cache.runtime.CacheBuildConfig#type()
quarkus.cache.type=redis