perf: share Jandex classes across test preparations (#7593)

Load Jandex parent-first in tests to avoid duplicate implementation classes across Quarkus preparations. Move the existing Groovy entry to bootstrap application.properties while retaining separate application classloaders and test state.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-05 07:55:49 -06:00
1 parent ca854a4194
commit 903430576a
2 files changed
+4 -5

No files matched your search

@@ -0,0 +1,4 @@
# Bootstrap class-loading settings are read before YAML configuration.
# Keep Groovy's DFA-cache-cleaner threads from pinning per-profile classloaders.
# Share Jandex implementation classes across preparations, not application state.
quarkus.class-loading.parent-first-artifacts=org.apache.groovy:groovy,io.smallrye:jandex
-5
View File
@@ -9,11 +9,6 @@ quarkus:
max-body-size: ${floci.protocols.max-request-size}M
max-header-size: 256K
max-initial-line-length: 262144
# Groovy (a REST Assured dependency) starts DFA-cache-cleaner threads that never stop.
# Loaded parent-first they live in the shared system classloader, so they cannot pin a
# per-profile application classloader across the many app restarts of a test run.
class-loading:
parent-first-artifacts: org.apache.groovy:groovy
floci:
base-url: "http://localhost:4566"