{"record":{"id":"57538ae39c938736","repo":"quarkusio/quarkus","slug":"failed-to-build-quarkus-application-for","errorCode":null,"errorMessage":"Failed to build Quarkus application for ","messagePattern":"Failed to build Quarkus application for ","errorType":"exception","errorClass":"GradleException","httpStatus":null,"severity":"error","filePath":"devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/worker/BuildWorker.java","lineNumber":97,"sourceCode":"                    LOGGER.info(\"AugmentResult.results = {}\", results.stream().map(ArtifactResult::getPath)\n                            .map(r -> r == null ? \"null\" : r.toString()).collect(Collectors.joining(\"\\n    \", \"\\n    \", \"\")));\n                }\n                JarResult jar = result.getJar();\n                LOGGER.info(\"AugmentResult:\");\n                if (jar == null) {\n                    LOGGER.info(\"    .jar = null\");\n                } else {\n                    LOGGER.info(\"    .jar.path = {}\", jar.getPath());\n                    LOGGER.info(\"    .jar.libraryDir = {}\", jar.getLibraryDir());\n                    LOGGER.info(\"    .jar.originalArtifact = {}\", jar.getOriginalArtifact());\n                    LOGGER.info(\"    .jar.uberJar = {}\", jar.isUberJar());\n                }\n            }\n            LOGGER.info(\"Quarkus application build was successful\");\n        } catch (BootstrapException e) {\n            // Gradle \"abbreviates\" the stacktrace to something human-readable, but here the underlying cause might\n            // get lost in the error output, so add 'e' to the message.\n            throw new GradleException(\"Failed to build Quarkus application for \" + gav + \" due to \" + e, e);\n        }\n    }\n\n    private static class Slf4JMessageWriter implements MessageWriter {\n        private final Logger logger;\n\n        public Slf4JMessageWriter(final Logger logger) {\n            this.logger = logger;\n        }\n\n        @Override\n        public void info(String msg) {\n            this.logger.info(msg);\n        }\n\n        @Override\n        public void error(String msg) {\n            this.logger.error(msg);","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/worker/BuildWorker.java#L79-L115","documentation":"BuildWorker executes the Quarkus application build inside a Gradle worker for the given GAV. On BootstrapException the worker throws GradleException with the message 'Failed to build Quarkus application for <gav> due to <e>' — deliberately embedding the exception in the message because Gradle's abbreviated stack traces can hide the underlying cause. It means the main Quarkus build (augmentation) failed.","triggerScenarios":"Running ./gradlew build/quarkusBuild (or build) where the Quarkus augmentation/bootstrap fails: a build step throws, configuration is invalid, the application model can't be built, or an extension recorder fails during bytecode generation.","commonSituations":"Typo or invalid value in quarkus.* properties; extension version mismatch between Quarkus core and extensions; missing required config for an extension (e.g. datasource URL); Java/Gradle version incompatibilities; corrupt Gradle cache.","solutions":["Read the full 'due to ...' message and its cause chain (run with --stacktrace or --info).","Fix the specific quarkus.* configuration error named in the cause.","Align all io.quarkus plugin/extension/BOM versions to one Quarkus release.","Clean caches: ./gradlew --stop; rm -rf build .gradle; retry.","Check JDK compatibility (Quarkus requires a supported JDK version)."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"./gradlew quarkusShowEffectiveConfig  # catch invalid quarkus.* config early\n# verify version alignment:\ngrep -r 'io.quarkus' gradle/libs.versions.toml build.gradle 2>/dev/null","typeGuard":null,"tryCatchPattern":"try {\n    ./gradlew quarkusBuild\n} catch (GradleException e) {\n    if (e.getMessage().startsWith(\"Failed to build Quarkus application for\")) {\n        // full cause is embedded in the message and its cause chain\n        System.err.println(e.getMessage());\n    }\n}","preventionTips":["Read the 'due to ...' part of the message — it contains the actual failure","Align Quarkus plugin, BOM, and extension versions in every module","Use a supported JDK version for your Quarkus release","Periodically clean build/ and .gradle caches to avoid stale augmentation state"],"tags":["gradle","build","bootstrap","augmentation"],"backgroundTag":"quarkus-bootstrap-failed","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}