Skip to content

Building with Gradle gives a warning about CDI dependencies #4960

@geoand

Description

@geoand

Now that we have moved to Jakarta dependencies and because gradle leaks CDI dependencies into our classpath, we get the following warning when building a gradle project:

building native image
These dependencies are not recommended:
        - javax.enterprise:cdi-api should be replaced by jakarta.enterprise:jakarta.enterprise.cdi-api
        - javax.inject:javax.inject should be replaced by jakarta.inject:jakarta.inject-api
You might end up with two different versions of the same classes or with an artifact you shouldn't have in your classpath.

cc @gsmet @stuartwdouglas @emmanuelbernard

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions