This content has been marked as final.
Show 1 reply
-
1. Re: Adding Libraries to JavaArchive
bmajsak Jul 7, 2017 5:01 AM (in response to sharkbite)JAR is not a library container in general - you don't have libs/ folder in your JARs.
Thus Shrinkwrap obviously doesn't have this API method for JavaArchive type. What you can do, however, is to instead of resolving dependencies as File you can instead call .as(JavaArchive.class).
Then simply iterate over those JavaArchives and call .merge on your target archive passing them.
HTH