From ff95ddfb5aa82ad67688c55a43c6815af622820c Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 17 Jan 2022 18:38:18 +0000 Subject: [PATCH] Update SmallRye Config to 2.8.2 --- bom/application/pom.xml | 2 +- .../src/main/java/io/quarkus/deployment/CodeGenerator.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 552f39214766f..d28914a1a5d4e 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -43,7 +43,7 @@ 1.2 1.0 1.8.0 - 2.8.1 + 2.8.2 3.1.2 3.0.4 2.1.17 diff --git a/core/deployment/src/main/java/io/quarkus/deployment/CodeGenerator.java b/core/deployment/src/main/java/io/quarkus/deployment/CodeGenerator.java index 5be736243a852..2616a74bf9c13 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/CodeGenerator.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/CodeGenerator.java @@ -92,7 +92,11 @@ public static boolean trigger(ClassLoader deploymentClassLoader, final PropertiesConfigSource pcs = new PropertiesConfigSource(properties, "Build system"); + // Discovered Config classes may cause issues here, because this goal runs before compile final SmallRyeConfig config = ConfigUtils.configBuilder(false, false, launchMode) + .setAddDiscoveredSources(false) + .setAddDiscoveredInterceptors(false) + .setAddDiscoveredConverters(false) .withProfile(launchMode.getDefaultProfile()) .withSources(pcs) .build();