Skip to content

Commit 4c3b5f6

Browse files
authored
Merge pull request #44581 from gsmet/3.17.0-backports-1
[3.17] 3.17.0 backports 1
2 parents 323ba29 + 9ea9a9f commit 4c3b5f6

File tree

128 files changed

+2520
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2520
-710
lines changed

bom/application/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
<smallrye-config.version>3.10.1</smallrye-config.version>
5252
<smallrye-health.version>4.1.0</smallrye-health.version>
5353
<smallrye-metrics.version>4.0.0</smallrye-metrics.version>
54-
<smallrye-open-api.version>4.0.2</smallrye-open-api.version>
54+
<smallrye-open-api.version>4.0.3</smallrye-open-api.version>
5555
<smallrye-graphql.version>2.11.0</smallrye-graphql.version>
56-
<smallrye-fault-tolerance.version>6.6.1</smallrye-fault-tolerance.version>
57-
<smallrye-jwt.version>4.6.0</smallrye-jwt.version>
56+
<smallrye-fault-tolerance.version>6.6.2</smallrye-fault-tolerance.version>
57+
<smallrye-jwt.version>4.6.1</smallrye-jwt.version>
5858
<smallrye-context-propagation.version>2.1.2</smallrye-context-propagation.version>
5959
<smallrye-reactive-streams-operators.version>1.0.13</smallrye-reactive-streams-operators.version>
6060
<smallrye-reactive-types-converter.version>3.0.1</smallrye-reactive-types-converter.version>
61-
<smallrye-mutiny-vertx-binding.version>3.15.0</smallrye-mutiny-vertx-binding.version>
61+
<smallrye-mutiny-vertx-binding.version>3.16.0</smallrye-mutiny-vertx-binding.version>
6262
<smallrye-reactive-messaging.version>4.25.0</smallrye-reactive-messaging.version>
6363
<smallrye-stork.version>2.7.0</smallrye-stork.version>
6464
<jakarta.activation.version>2.1.3</jakarta.activation.version>
@@ -110,12 +110,12 @@
110110
<wildfly-elytron.version>2.6.0.Final</wildfly-elytron.version>
111111
<jboss-marshalling.version>2.2.1.Final</jboss-marshalling.version>
112112
<jboss-threads.version>3.8.0.Final</jboss-threads.version>
113-
<vertx.version>4.5.10</vertx.version>
113+
<vertx.version>4.5.11</vertx.version>
114114
<httpclient.version>4.5.14</httpclient.version>
115115
<httpcore.version>4.4.16</httpcore.version>
116116
<httpasync.version>4.1.5</httpasync.version>
117117
<cronutils.version>9.2.1</cronutils.version>
118-
<quartz.version>2.3.2</quartz.version>
118+
<quartz.version>2.5.0</quartz.version>
119119
<h2.version>2.3.230</h2.version> <!-- When updating, needs to be matched in io.quarkus.hibernate.orm.runtime.config.DialectVersions
120120
and the dependency jts-core needs to be updated in extensions/jdbc/jdbc-h2/runtime/pom.xml -->
121121
<postgresql-jdbc.version>42.7.4</postgresql-jdbc.version>
@@ -129,10 +129,10 @@
129129
<shrinkwrap.version>1.2.6</shrinkwrap.version>
130130
<hamcrest.version>2.2</hamcrest.version><!-- The version needs to be compatible with both REST Assured and Awaitility -->
131131
<junit.jupiter.version>5.10.5</junit.jupiter.version>
132-
<infinispan.version>15.0.10.Final</infinispan.version>
132+
<infinispan.version>15.0.11.Final</infinispan.version>
133133
<infinispan.protostream.version>5.0.12.Final</infinispan.protostream.version>
134134
<caffeine.version>3.1.8</caffeine.version>
135-
<netty.version>4.1.111.Final</netty.version>
135+
<netty.version>4.1.115.Final</netty.version>
136136
<brotli4j.version>1.16.0</brotli4j.version>
137137
<reactive-streams.version>1.0.4</reactive-streams.version>
138138
<jboss-logging.version>3.6.1.Final</jboss-logging.version>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package io.quarkus.deployment.builditem;
2+
3+
import io.quarkus.builder.item.MultiBuildItem;
4+
import io.quarkus.deployment.pkg.NativeConfig;
5+
6+
/**
7+
* A build item that indicates whether native monitoring is enabled and which option from {@link NativeConfig.MonitoringOption}.
8+
* To be used in the native image generation.
9+
*/
10+
public final class NativeMonitoringBuildItem extends MultiBuildItem {
11+
private final NativeConfig.MonitoringOption option;
12+
13+
public NativeMonitoringBuildItem(NativeConfig.MonitoringOption option) {
14+
this.option = option;
15+
}
16+
17+
public NativeConfig.MonitoringOption getOption() {
18+
return this.option;
19+
}
20+
}

core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveHierarchyBuildItem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* register the following:
2525
* <p>
2626
* - Superclasses
27+
* - Subclasses
2728
* - Component types of collections
2829
* - Types used in bean properties (if method reflection is enabled)
2930
* - Field types (if field reflection is enabled)

core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@
8080
import io.smallrye.config.EnvConfigSource;
8181
import io.smallrye.config.ProfileConfigSourceInterceptor;
8282
import io.smallrye.config.PropertiesConfigSource;
83+
import io.smallrye.config.PropertyName;
8384
import io.smallrye.config.SecretKeys;
8485
import io.smallrye.config.SmallRyeConfig;
8586
import io.smallrye.config.SmallRyeConfigBuilder;
87+
import io.smallrye.config.SmallRyeConfigBuilderCustomizer;
8688
import io.smallrye.config.SysPropConfigSource;
8789
import io.smallrye.config.common.AbstractConfigSource;
8890

@@ -626,35 +628,27 @@ ReadResult run() {
626628
objectsByClass.put(mapping.getKlass(), config.getConfigMapping(mapping.getKlass(), mapping.getPrefix()));
627629
}
628630

629-
// Build Time Values Recording
630-
for (ConfigClass mapping : buildTimeMappings) {
631-
Set<String> mappedProperties = ConfigMappings.mappedProperties(mapping, allProperties);
632-
for (String property : mappedProperties) {
631+
Set<PropertyName> buildTimeNames = getMappingsNames(buildTimeMappings);
632+
Set<PropertyName> buildTimeRunTimeNames = getMappingsNames(buildTimeRunTimeMappings);
633+
Set<PropertyName> runTimeNames = getMappingsNames(runTimeMappings);
634+
for (String property : allProperties) {
635+
PropertyName name = new PropertyName(property);
636+
if (buildTimeNames.contains(name)) {
633637
unknownBuildProperties.remove(property);
634638
ConfigValue value = config.getConfigValue(property);
635639
if (value.getRawValue() != null) {
636640
allBuildTimeValues.put(value.getNameProfiled(), value.getRawValue());
637641
}
638642
}
639-
}
640-
641-
// Build Time and Run Time Values Recording
642-
for (ConfigClass mapping : buildTimeRunTimeMappings) {
643-
Set<String> mappedProperties = ConfigMappings.mappedProperties(mapping, allProperties);
644-
for (String property : mappedProperties) {
643+
if (buildTimeRunTimeNames.contains(name)) {
645644
unknownBuildProperties.remove(property);
646645
ConfigValue value = config.getConfigValue(property);
647646
if (value.getRawValue() != null) {
648647
allBuildTimeValues.put(value.getNameProfiled(), value.getRawValue());
649648
buildTimeRunTimeValues.put(value.getNameProfiled(), value.getRawValue());
650649
}
651650
}
652-
}
653-
654-
// Run Time Values Recording
655-
for (ConfigClass mapping : runTimeMappings) {
656-
Set<String> mappedProperties = ConfigMappings.mappedProperties(mapping, allProperties);
657-
for (String property : mappedProperties) {
651+
if (runTimeNames.contains(name)) {
658652
unknownBuildProperties.remove(property);
659653
ConfigValue value = runtimeConfig.getConfigValue(property);
660654
if (value.getRawValue() != null) {
@@ -1119,6 +1113,17 @@ private SmallRyeConfig getConfigForRuntimeRecording() {
11191113
builder.getProfiles().add("");
11201114
builder.getSources().clear();
11211115
builder.getSourceProviders().clear();
1116+
builder.withCustomizers(new SmallRyeConfigBuilderCustomizer() {
1117+
@Override
1118+
public void configBuilder(final SmallRyeConfigBuilder builder) {
1119+
builder.getMappingsBuilder().getMappings().clear();
1120+
}
1121+
1122+
@Override
1123+
public int priority() {
1124+
return Integer.MAX_VALUE;
1125+
}
1126+
});
11221127
builder.setAddDefaultSources(false)
11231128
// Customizers may duplicate sources, but not much we can do about it, we need to run them
11241129
.addDiscoveredCustomizers()
@@ -1216,6 +1221,14 @@ private static void getDefaults(
12161221
patternMap.getChild(childName));
12171222
}
12181223
}
1224+
1225+
private static Set<PropertyName> getMappingsNames(final List<ConfigClass> configMappings) {
1226+
Set<String> names = new HashSet<>();
1227+
for (ConfigClass configMapping : configMappings) {
1228+
names.addAll(ConfigMappings.getProperties(configMapping).keySet());
1229+
}
1230+
return PropertiesUtil.toPropertyNames(names);
1231+
}
12191232
}
12201233

12211234
public static final class ReadResult {

0 commit comments

Comments
 (0)