Skip to content

Commit 9f54ca9

Browse files
authored
Merge pull request #48700 from gsmet/complain-about-legacy-config-roots
Annotation processor - Error on legacy config classes
2 parents 751dd22 + 69b128d commit 9f54ca9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/processor/src/main/java/io/quarkus/annotation/processor/ExtensionAnnotationProcessor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public synchronized void init(ProcessingEnvironment processingEnv) {
4343

4444
boolean useConfigMapping = !Boolean
4545
.parseBoolean(utils.processingEnv().getOptions().getOrDefault(Options.LEGACY_CONFIG_ROOT, "false"));
46+
47+
if (!useConfigMapping) {
48+
throw new IllegalArgumentException(
49+
"Starting with Quarkus 3.25, legacy config classes (deprecated since Quarkus 3.19) are not supported anymore. "
50+
+ "Please migrate the configuration of your extension to interfaces annotated with @ConfigMapping. See https://quarkus.io/guides/config-mappings#config-mappings for more information.");
51+
}
52+
4653
boolean debug = Boolean.getBoolean(DEBUG);
4754

4855
ExtensionModule extensionModule = utils.extension().getExtensionModule();

0 commit comments

Comments
 (0)