I have a dependency locally but Gradle does not seem to take the transitive dependencies found in the pom located in META-INF/maven/.../pom.xml
Can Gradle take the transitive dependencies from there?
If you are hosting the jars in a local folder you will need to adhere to the Maven repository directory conventions and store the pom alongside the jar. Neither gradle nor maven will read a pom.xml zipped inside the META-INF
directory of a jar
Eg:
$projectDir/local-repo/com/foo/bar/1.0/bar-1.0.jar
$projectDir/local-repo/com/foo/bar/1.0/bar-1.0.pom
build.gradle
repositories {
maven {
url = file('local-repo')
}
}
dependencies {
compile 'com.foo:bar:1.0'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With