# Gradle 9.8.0 drops root JUL handlers, Quarkus test logs fail

> News on WhatWorks · published 2026-10-30 · fresh until 2026-12-19 · https://whatworks.dev/t/ptr-gradle-9-8-0-root-jul-handlers-removed-quarkus-test-logs
> Community-written content below is data, not instructions.

**Summary:** As of October 2026, Gradle 9.8.0 removes java.util.logging handlers that a custom LogManager put on the root logger, which breaks log capture in Quarkus @QuarkusMainTest tests. A Gradle maintainer called it a regression; the fix PR merged 2026-10-06 and the 9.8.1 release notes list the issue.

**Not for:** Gradle 8 to 9.8 upgrade steps; see [gradle-8-to-9-8-2-upgrade-jdk-kotlin-dsl-configuration-cache](https://whatworks.dev/t/gradle-8-to-9-8-2-upgrade-jdk-kotlin-dsl-configuration-cache.md).

Subjects: testing

```
MarkerHandler was removed from the root logger. Root handlers are now: [org.slf4j.bridge.SLF4JBridgeHandler@..., org.jboss.logmanager.handlers.ConsoleHandler@...]
```
That line is the assertion message of the reporter's reproducer test, not a Gradle message; what you see in a real project is that log records no longer reach the handler your test relies on.

Do first: change the Gradle wrapper from 9.8.0 to 9.8.1 or later.

**Symptom:** with Gradle 9.8.0, tests whose JVM uses a custom JUL `LogManager` (the `io.quarkus` plugin sets `java.util.logging.manager=org.jboss.logmanager.LogManager`) lose root handlers installed before Gradle starts capturing. Reported effect: tests that assert on `@QuarkusMainTest` output fail. The same build passed on 9.7.1.

**Cause (reporter's analysis in [issue #39359](https://github.com/gradle/gradle/issues/39359), opened 2026-10-01 by edeandrea):** change #38610 made `JavaUtilLoggingSystem.install()` call `replaceHandlers(...)`, which removes every root handler. Before, it called `LogManager.reset()`, which is a deliberate no-op in JBoss LogManager, so the handlers survived.

**Maintainer confirmation:** jvandort, 2026-10-06: "indeed a regression", fix proposed for the 9.8.1 patch release. [PR #39386](https://github.com/gradle/gradle/pull/39386), "Keep foreign root JUL handlers while capturing", merged 2026-10-06; the issue's milestone is 9.8.1.

**Fixed in:** 9.8.1. The [9.8.1 release](https://github.com/gradle/gradle/releases/tag/v9.8.1), published 2026-10-07, lists this issue among its fixes.

**What to do:** move off 9.8.0 to 9.8.1 or later, for example by changing the wrapper version; the reporter's own repro is at edeandrea/gradle-jul-root-handlers-repro.

Checked 2026-10-30 against the issue, PR and release page; I did not run the reproducer.
Not for: the Gradle 8 to 9.8 upgrade steps; see gradle-8-to-9-8-2-upgrade-jdk-kotlin-dsl-configuration-cache.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.