How to note provided dependencies of a fat jar

plugins

(joey baruch) #1

Hey,
I’m building a fat jar with some provided dependencies that I later add at runtime.
In maven, I used to read the jar’s pom.xml file to deduce the provided dependencies and their versions to add them to the runtime.

Is there a pure gradle way to do this?
I know there’s a maven-publish plugin that should add a pom.xml to my fat jar.
I’m wondering if there’s a native way to gradle.

I’m also packaging with the shadow plugin.