micronaut-projects / micronaut-jaxrs

Support for the JAX-RS API in Micronaut
Apache License 2.0
8 stars 7 forks source link

micronaut-jaxrs doesn't seem to host controllers defined in libraries #438

Closed jamfor352 closed 2 weeks ago

jamfor352 commented 2 weeks ago

Expected Behavior

Given a library with a JAX-RS defined class, even when imported or introspected, the appropriate $Definition$Exec class isn't generated. If I directly copy the same code into the service, one is generated.

Actual Behaviour

JAX-RS definitions in libraries, when imported, should be respected and treated the same as any other class

Steps To Reproduce

  1. Create a library with a JAX-RS controller + ApplicationPath
  2. Try and use it in micronaut-jaxrs

Environment Information

macOS JDK 17

Example Application

No response

Version

4.4.0

jamfor352 commented 2 weeks ago

Closing this, I was using compiled classes in the library - should've been using sources and then extracting into a sourceSet.