Skip to content

Commit 8e094e7

Browse files
authored
Merge pull request #51343 from gsmet/3.30.2-backports-1
[3.30] 3.30.2 backports 1
2 parents fa568f2 + b9e15b2 commit 8e094e7

File tree

58 files changed

+780
-337
lines changed

Some content is hidden

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

58 files changed

+780
-337
lines changed

bom/application/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
<smallrye-graphql.version>2.16.0</smallrye-graphql.version>
5555
<smallrye-fault-tolerance.version>6.9.3</smallrye-fault-tolerance.version>
5656
<smallrye-jwt.version>4.6.2</smallrye-jwt.version>
57-
<smallrye-context-propagation.version>2.2.1</smallrye-context-propagation.version>
57+
<smallrye-context-propagation.version>2.3.0</smallrye-context-propagation.version>
5858
<smallrye-reactive-streams-operators.version>1.0.13</smallrye-reactive-streams-operators.version>
5959
<smallrye-reactive-types-converter.version>3.0.3</smallrye-reactive-types-converter.version>
60-
<smallrye-mutiny-vertx-binding.version>3.20.3</smallrye-mutiny-vertx-binding.version>
60+
<smallrye-mutiny-vertx-binding.version>3.20.4</smallrye-mutiny-vertx-binding.version>
6161
<smallrye-reactive-messaging.version>4.31.0</smallrye-reactive-messaging.version>
6262
<smallrye-stork.version>2.7.3</smallrye-stork.version>
6363
<jakarta.activation.version>2.1.4</jakarta.activation.version>
@@ -98,7 +98,7 @@
9898
<!-- See root POM for hibernate-orm.version, hibernate-reactive.version, hibernate-validator.version,
9999
hibernate-search.version, antlr.version, bytebuddy.version -->
100100
<narayana.version>7.3.3.Final</narayana.version>
101-
<narayana-lra.version>1.0.2.Final</narayana-lra.version>
101+
<narayana-lra.version>1.0.3.Final</narayana-lra.version>
102102
<agroal.version>2.8</agroal.version>
103103
<jboss-transaction-spi.version>8.0.0.Final</jboss-transaction-spi.version>
104104
<elasticsearch-opensource-components.version>9.1.5</elasticsearch-opensource-components.version>
@@ -137,7 +137,7 @@
137137
<brotli4j.version>1.16.0</brotli4j.version>
138138
<reactive-streams.version>1.0.4</reactive-streams.version>
139139
<jboss-logging.version>3.6.1.Final</jboss-logging.version>
140-
<mutiny.version>3.0.1</mutiny.version>
140+
<mutiny.version>3.0.3</mutiny.version>
141141
<jctools-core.version>4.0.5</jctools-core.version>
142142
<kafka3.version>4.0.1</kafka3.version>
143143
<lz4.version>1.8.0</lz4.version> <!-- dependency of the kafka-clients that could be overridden by other imported BOMs in the platform -->

build-parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<!-- Jandex versions -->
3333
<jandex.version>3.5.2</jandex.version>
34-
<jandex-gradle-plugin.version>1.0.0</jandex-gradle-plugin.version>
34+
<jandex-gradle-plugin.version>2.3.0</jandex-gradle-plugin.version>
3535

3636
<asciidoctorj.version>2.5.13</asciidoctorj.version>
3737
<htmlunit.version>4.18.0</htmlunit.version>

core/deployment/src/main/java/io/quarkus/deployment/builditem/DevServicesRegistryBuildItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void reallyStart(DevServicesResultBuildItem request, List<DevServicesCus
125125
startable.start();
126126

127127
RunningService service = new RunningService(request.getName(), request.getDescription(),
128-
request.getConfig(startable), startable.getContainerId(), startable);
128+
request.getConfig(startable), request.getOverrideConfig(startable), startable.getContainerId(), startable);
129129
this.addRunningService(request.getName(), request.getServiceName(), request.getServiceConfig(), service);
130130

131131
compressor.close();

core/deployment/src/main/java/io/quarkus/deployment/builditem/DevServicesResultBuildItem.java

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.util.HashMap;
77
import java.util.Map;
88
import java.util.Objects;
9+
import java.util.Set;
910
import java.util.function.Consumer;
1011
import java.util.function.Function;
1112
import java.util.function.Supplier;
@@ -77,6 +78,7 @@ public final class DevServicesResultBuildItem extends MultiBuildItem {
7778
* A map of application config that is dependent on the started service
7879
*/
7980
private final Map<String, Function<Startable, String>> applicationConfigProvider;
81+
private final Set<String> highPriorityConfig;
8082

8183
public static DiscoveredServiceBuilder discovered() {
8284
return new DiscoveredServiceBuilder();
@@ -106,6 +108,7 @@ public DevServicesResultBuildItem(String name, String description, String contai
106108
this.serviceName = null;
107109
this.serviceConfig = null;
108110
this.applicationConfigProvider = null;
111+
this.highPriorityConfig = null;
109112
this.startableSupplier = null;
110113
this.postStartAction = null;
111114
}
@@ -121,7 +124,7 @@ public DevServicesResultBuildItem(String name,
121124
Map<String, String> config,
122125
Supplier<Startable> startableSupplier,
123126
Consumer<Startable> postStartAction,
124-
Map<String, Function<Startable, String>> applicationConfigProvider) {
127+
Map<String, Function<Startable, String>> applicationConfigProvider, Set<String> highPriorityConfig) {
125128
this.name = name;
126129
this.description = description;
127130
this.containerId = null;
@@ -131,6 +134,7 @@ public DevServicesResultBuildItem(String name,
131134
this.startableSupplier = startableSupplier;
132135
this.postStartAction = postStartAction;
133136
this.applicationConfigProvider = applicationConfigProvider;
137+
this.highPriorityConfig = highPriorityConfig;
134138
}
135139

136140
public String getName() {
@@ -175,6 +179,7 @@ public Map<String, Function<Startable, String>> getApplicationConfigProvider() {
175179

176180
public Map<String, String> getConfig(Startable startable) {
177181
SupplierMap<String, String> map = new SupplierMap<>();
182+
// To make sure static config does make it into a config source, include it here
178183
if (config != null && !config.isEmpty()) {
179184
map.putAll(config);
180185
}
@@ -186,6 +191,22 @@ public Map<String, String> getConfig(Startable startable) {
186191
return map;
187192
}
188193

194+
/**
195+
* @deprecated Subject to changes due to <a href="https://github.com/quarkusio/quarkus/pull/51209">#51209</a>
196+
*/
197+
@Deprecated(forRemoval = true)
198+
public Map<String, String> getOverrideConfig(Startable startable) {
199+
200+
SupplierMap<String, String> map = new SupplierMap<>();
201+
202+
if (highPriorityConfig != null) {
203+
for (String key : highPriorityConfig) {
204+
map.put(key, () -> applicationConfigProvider.get(key).apply(startable));
205+
}
206+
}
207+
return map;
208+
}
209+
189210
public static class DiscoveredServiceBuilder {
190211
private String name;
191212
private String containerId;
@@ -226,10 +247,8 @@ public DevServicesResultBuildItem build() {
226247
}
227248

228249
public static class OwnedServiceBuilder<T extends Startable> {
229-
230250
private static final String IO_QUARKUS_DEVSERVICES_CONFIG_BUILDER_CLASS = "io.quarkus.devservice.runtime.config.DevServicesConfigBuilder";
231-
private static final boolean CONFIG_BUILDER_AVAILABLE = isClassAvailable(
232-
IO_QUARKUS_DEVSERVICES_CONFIG_BUILDER_CLASS);
251+
private static final boolean CONFIG_BUILDER_AVAILABLE = isClassAvailable(IO_QUARKUS_DEVSERVICES_CONFIG_BUILDER_CLASS);
233252

234253
private String name;
235254
private String description;
@@ -239,6 +258,7 @@ public static class OwnedServiceBuilder<T extends Startable> {
239258
private Supplier<? extends Startable> startableSupplier;
240259
private Consumer<? extends Startable> postStartAction;
241260
private Map<String, Function<Startable, String>> applicationConfigProvider;
261+
private Set<String> highPriorityConfig;
242262

243263
public OwnedServiceBuilder<T> name(String name) {
244264
this.name = name;
@@ -286,6 +306,15 @@ public OwnedServiceBuilder<T> postStartHook(Consumer<T> postStartAction) {
286306
return this;
287307
}
288308

309+
/**
310+
* @deprecated Subject to changes due to <a href="https://github.com/quarkusio/quarkus/pull/51209">#51209</a>
311+
*/
312+
@Deprecated(forRemoval = true)
313+
public OwnedServiceBuilder<T> highPriorityConfig(Set<String> highPriorityConfig) {
314+
this.highPriorityConfig = highPriorityConfig;
315+
return this;
316+
}
317+
289318
/**
290319
* Provides config to inject into the config system. If you've got values that don't change, use config(), and if you've
291320
* got values that you'll only know after starting the container, use configProvider() and provide a map of
@@ -306,7 +335,7 @@ public DevServicesResultBuildItem build() {
306335
return new DevServicesResultBuildItem(name, description, serviceName, serviceConfig, config,
307336
(Supplier<Startable>) startableSupplier,
308337
(Consumer<Startable>) postStartAction,
309-
applicationConfigProvider);
338+
applicationConfigProvider, highPriorityConfig);
310339
}
311340

312341
private static boolean isClassAvailable(String className) {

core/deployment/src/main/java/io/quarkus/deployment/console/StartupLogCompressor.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,19 @@ public void close() {
6969
return;
7070
}
7171
QuarkusConsole.removeOutputFilter(this);
72-
sl.close();
72+
if (sl != null) {
73+
sl.close();
74+
}
7375
}
7476

7577
public void closeAndDumpCaptured() {
7678
if (thread == null) {
7779
return;
7880
}
7981
QuarkusConsole.removeOutputFilter(this);
80-
sl.close();
82+
if (sl != null) {
83+
sl.close();
84+
}
8185
for (var i : toDump) {
8286
QuarkusConsole.INSTANCE.write(true, i);
8387
}
@@ -92,7 +96,9 @@ public boolean test(String s, Boolean errorStream) {
9296
Thread current = Thread.currentThread();
9397
if (current == this.thread || additionalThreadPredicate.test(current)) {
9498
toDump.add(s);
95-
sl.setMessage(MessageFormat.BLUE + name + MessageFormat.RESET + " " + s.replace("\n", ""));
99+
if (sl != null) {
100+
sl.setMessage(MessageFormat.BLUE + name + MessageFormat.RESET + " " + s.replace("\n", ""));
101+
}
96102
return false;
97103
}
98104
return true;

core/deployment/src/main/java/io/quarkus/deployment/images/ContainerImages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* <p>
1010
* - {@code x_IMAGE_NAME} - the name of the image without the version (e.g. {@code registry.access.redhat.com/ubi9/ubi-minimal})
1111
* - {@code x_VERSION} - the version of the image (e.g. {@code 9.5})
12-
* - {@code x} - the full image name (e.g. {@code registry.access.redhat.com/ubi9/ubi-minimal:9.6})
12+
* - {@code x} - the full image name (e.g. {@code registry.access.redhat.com/ubi9/ubi-minimal:9.7})
1313
*/
1414
public class ContainerImages {
1515

@@ -23,7 +23,7 @@ public class ContainerImages {
2323
/**
2424
* UBI 9 version
2525
*/
26-
public static final String UBI9_VERSION = "9.6";
26+
public static final String UBI9_VERSION = "9.7";
2727

2828
/**
2929
* Version used for more UBI8 Java images.

core/runtime/src/main/java/io/quarkus/devservices/crossclassloader/runtime/RunningService.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ public final class RunningService implements Closeable {
1616
private final String feature;
1717
private final String description;
1818
private final Map<String, String> configs;
19+
private final Map<String, String> overrideConfigs;
1920
private final String containerId;
2021
private final Closeable closeable;
2122

22-
public RunningService(String feature, String description, Map<String, String> configs, String containerId,
23+
public RunningService(String feature, String description, Map<String, String> configs, Map<String, String> overrideConfig,
24+
String containerId,
2325
Closeable closeable) {
2426
this.feature = feature;
2527
this.description = description;
2628
this.configs = configs;
29+
this.overrideConfigs = overrideConfig;
2730
this.containerId = containerId;
2831
this.closeable = closeable;
2932
}
@@ -45,8 +48,15 @@ public Map<String, String> configs() {
4548
return configs;
4649
}
4750

51+
/**
52+
* @deprecated Subject to changes due to <a href="https://github.com/quarkusio/quarkus/pull/51209">#51209</a>
53+
*/
54+
@Deprecated(forRemoval = true)
55+
public Map<String, String> overrideConfigs() {
56+
return overrideConfigs;
57+
}
58+
4859
public String containerId() {
4960
return containerId;
5061
}
51-
5262
}

devtools/bom-descriptor-json/src/main/resources/catalog-overrides.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"codestart-data": {
148148
"tooling-dockerfiles.dockerfile.jvm.from-template": "registry.access.redhat.com/ubi9/openjdk-{java.version}:1.23",
149149
"tooling-dockerfiles.dockerfile.jvm.from": "registry.access.redhat.com/ubi9/openjdk-${recommended-java-version}:1.23",
150-
"tooling-dockerfiles.dockerfile.native.from": "registry.access.redhat.com/ubi9/ubi-minimal:9.6",
150+
"tooling-dockerfiles.dockerfile.native.from": "registry.access.redhat.com/ubi9/ubi-minimal:9.7",
151151
"tooling-dockerfiles.dockerfile.native-micro.from": "quay.io/quarkus/ubi9-quarkus-micro-image:2.0"
152152
},
153153
"properties": {

docs/src/main/asciidoc/deploying-to-openshift.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The following table outlines the build strategies that {project-name} supports:
5858
== Bootstrapping the project
5959

6060
First, you need a new project that contains the OpenShift extension.
61-
Then, before you build and deploy our application, you must log into an OpenShift cluster.
61+
Then, before you build and deploy your application, you must log into an OpenShift cluster.
6262

6363
=== Adding the OpenShift extension
6464

@@ -104,7 +104,7 @@ However, if you want to continue to use `DeploymentConfig`, it is still possible
104104
+
105105
[source,bash,subs="+quotes,attributes+"]
106106
----
107-
quarkus extension add 'quarkus-openshift'
107+
quarkus extension add quarkus-openshift
108108
----
109109

110110
== Logging in to an {openshift} cluster

docs/src/main/asciidoc/grpc-generation-reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ If you are using Gradle, you can use the following configuration:
307307
[source, gradle, subs=attributes+]
308308
----
309309
plugins {
310-
id 'org.kordamp.gradle.jandex' version '1.1.0'
310+
id 'org.kordamp.gradle.jandex' version '{jandex-gradle-plugin-version}'
311311
}
312312
----
313313

0 commit comments

Comments
 (0)