smallrye-graphql: Indexer doesn't work in JDK11 or with Wildfly

I tried to integrate this lib into my Wildfly JakartaEE project, but the indexer couldn’t find my annotated @GraphQLApi classes.

The (open)JDK11 case is reproducible with the example project (https://github.com/phillip-kruger/graphql-example) too.

In Wildfly I’ve debugged the classpath resolution logic, and found, that only the jboss-modules.jar is processed by the indexer.

The only successful execution was with JDK8 and Thorntail.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 30 (21 by maintainers)

Commits related to this issue

Most upvoted comments

An internal model that can be decoupled from Jandex sounds like a good idea. I have a similar thing in SmallRye Metrics for representing annotated elements, and these model objects can be created form Jandex objects or java.lang.reflect objects, so it can be used at build time as well as run time.

The best option would be if GraphQLSchema was serializable and therefore could be constructed at build, but as that class is not under our control, that would be difficult.