Reflection

已回答

I have code which uses the following dependency:

implementation("org.reflections:reflections:0.10.2")

It works fine in the IDE.  However, if I generate a JAR, the necessary code is not included in the JAR (I use a number of other library files, and all of those seem to be there, though).

I have tried adding the dependency to the artifact details manually, which does indeed sort out that problem … but then it simply turns out that something else is missing.

Does anyone know what's going on and how I can fix it?

Thanks.

0

Hello, Jamie!

Thank you for reporting this!

How the JAR is being build: via Gradle's Tasks like jar or with IDEA's Artifacts functionality?

Would you be able to share the Artifact's configuration or the Project itself?

0

请先登录再写评论。