Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20373

How to add Transitive dependancies to local jar ** I don't want to create fat jar**

$
0
0

This is a file dependency. A file dependency is specifically a binary file on disk without any metadata such as dependencies.

There’s no way to download dependencies from just a JAR file. If you just have a JAR file, you must declare any dependencies that it needs.

You need metadata in order to have dependencies resolved from Maven Central. This metadata is normally contained in a POM file as there are no dependencies from Maven Central present in the JAR file itself.

It is not possible to provide this POM with a file dependency or flatDir repository even if you publish it with the JAR file. You would need to have a folder on disk that is structured and configured as a Maven repository, even if it is on your local file system.


Viewing all articles
Browse latest Browse all 20373

Trending Articles