helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.5k stars 566 forks source link

Jakarta Beans Validation version: 3.0, 3.2 or 4.0? #8392

Closed hyder closed 2 months ago

hyder commented 7 months ago

Environment Details


Problem Description

When creating a new project, we notice that Helidon is still using Jakarta Beans 3.0:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
                           https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd"
        version="3.0"
        bean-discovery-mode="annotated">
</beans>

Given there are later versions of the Beans specs (3.2, 4.0), should we upgrade to later versions and should the mp archetype also update its version?

Steps to reproduce

Generate a new Helidon MP project and inspect the beans.xml

barchetta commented 7 months ago

For reference, the last time we updated: #3697

ljnelson commented 7 months ago

Note that the specification in question is CDI, not Jakarta Validation.