Skip to content

Commit

Permalink
Ensure that quarkus.uuid is not determined at native image build time
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jan 27, 2025
1 parent e0bf9eb commit f5a8c95
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
import io.quarkus.deployment.builditem.SuppressNonRuntimeConfigChangedWarningBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import io.quarkus.deployment.configuration.BuildTimeConfigurationReader;
import io.quarkus.deployment.configuration.RunTimeConfigurationGenerator;
import io.quarkus.deployment.configuration.tracker.ConfigTrackingConfig;
Expand Down Expand Up @@ -114,6 +115,12 @@ public class ConfigGenerationBuildStep {
SmallRyeConfigBuilder.class, "withSources",
SmallRyeConfigBuilder.class, ConfigSource[].class);

@BuildStep
void nativeSupport(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClassProducer) {
runtimeInitializedClassProducer.produce(new RuntimeInitializedClassBuildItem(
"io.quarkus.runtime.configuration.RuntimeConfigBuilder$UuidConfigSource$Holder"));
}

@BuildStep
void buildTimeRunTimeConfig(
ConfigurationBuildItem configItem,
Expand Down

0 comments on commit f5a8c95

Please sign in to comment.