Weld 7.0.0.Final
By Matej Novotny | September 25, 2026
Weld Core 7.0.0.Final and Weld API 7.0.Final are now available!
As planned, there are no changes from CR2 — this release finalizes the Weld 7 effort and our compatible implementation of CDI 5.0.
For those joining us from Weld 6, CDI 5.0 brings @Eager initialization, @Reserve fallback beans, @AutoClose resource cleanup, asynchronous method invokers and improvements to build compatible extensions.
Weld also implements the new client proxy unwrapping API and language model support for records and sealed classes.
For a closer look, see What’s new in CDI 5.0? and the CDI 5.0 specification.
When upgrading, remember that CDI 5.0 requires Java 17 or newer and uses new Maven coordinates: jakarta.cdi:jakarta.cdi-api.
It also removes the deprecated EL methods from BeanManager (use ELAwareBeanManager) and forbids trimming non-explicit bean archives.
On the Weld side, the main changes to keep in mind are:
-
Support for Jakarta Persistence 4.0
EntityAgentinjection through@PersistenceAgent. -
Removal of
WeldInstance.Handlerand related methods; use the standardInstance.Handle,getHandle(),handles()andhandlesStream()APIs, plus Weld’sgetHandlePriorityComparator()for priority ordering. -
Removal of
WeldInvocationContextand the legacyorg.jboss.weld.interceptor.bindingscontext-data entry; use the standard Jakarta InterceptorsInvocationContextmethods to access interceptor bindings. -
Removal of
WeldContainer.instance()(useWeldContainerdirectly as anInstance) and theLiteExtensionTranslator(List, ClassLoader)constructor (use theCollectionvariant). -
Deprecation of Weld’s
@ActivateRequestContext,WeldBeanConfiguratorandWeldAfterBeanDiscovery#addBean()in favor of their standard CDI equivalents.
The CR2 announcement has more detail on the API cleanup and Core fixes, including asynchronous invoker handling and unused-bean detection. See also the reference documentation for Weld 7 migration guidance.
Thanks to everyone who contributed and tested the prereleases! As always, please report any issues you encounter.
[ Download ] [ Weld Core release ] [ Weld API release ]
