Skip to content

Upgrading to 10.x - "Could not find any avaje modules" #700

Closed
@harrel56

Description

@harrel56

Hello,

I'm trying to upgrade from 9.10-javax to 10.3-javax but now context cannot be created and an exception is thrown by BeanScope.builder().build():

Exception in thread "main" java.lang.IllegalStateException: Could not find any avaje modules. Perhaps using Gradle and IDEA but with a setup issue? Review IntelliJ Settings / Build / Build tools / Gradle - 'Build and run using' value and set that to 'Gradle'.  Refer to https://avaje.io/inject#gradle
        at io.avaje.inject.DBeanScopeBuilder.build(DBeanScopeBuilder.java:269)
        at dev.harrel.jarhell.App.start(App.java:37)
        at dev.harrel.jarhell.App.main(App.java:25)

Strangely enough it only occurs when I try to run it from fat jar (running it via gradle in IJ works as expected). Tried to check if 10.x had some breaking changes but couldn't find anything. Do you have any ideas what's going on? If not, I could provide broader context.

PS Is support for javax being dropped? It looks like 10.4 version doesn't have a javax variant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions