gctoolkit integration with jar #351
-
Hi everyone, my mvn project works fine with gctoolkit on intelij, but when I create a jar from it, gctoolkit stops to see my implementations/provides for the Aggregation interface. Does anybody know what could be the issue? And the output I get (there seem some other wornings as well, i just leaved them for the full referance): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@AlinaHovakimyan There are three ways that you can get gctoolkit to find your Aggregation classes.
For the service provider approaches, you'll need to call There is also a |
Beta Was this translation helpful? Give feedback.
@AlinaHovakimyan There are three ways that you can get gctoolkit to find your Aggregation classes.
GCToolKit#loadAggregation(Aggregation)
methodprovides
descriptor in a module-info.java file for the Aggregations your application provides.META-INF\services
directory of your jar file.For the service provider approaches, you'll need to call
GCToolKit#loadAggregationsFromServiceLoader()
There is also a
…