Skip to content
Discussion options

You must be logged in to vote

You might be able to use io.quarkus.bootstrap.classloading.QuarkusClassLoader#isClassPresentAtRuntime(String) for this purpose.

Some other thoughts:

All of the artifacts which are known to the build process (more or less) can be found in the application model, which can be found as part of the CurateOutcomeBuildItem from an extension build step. You can examine the flags of each dependency to know if it will be included (DependencyFlags.RUNTIME_CP is likely what you want). This is a list of artifacts and is not indexed.

I believe that the Jandex index only contains artifacts which have been identified as needing indexing, for example if there is a META-INF/beans.xml file present in the ar…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FWest98
Comment options

Answer selected by FWest98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants