I have a (3rd party) zip file uploaded to our nexus repository. This zip file contains a number of jar files we use as a dependency for our project. I have the following code to add the jar files as a dependency, but I cannot get it working correctly.
configurations {
birtRuntime {
transitive = false
}
}
dependencies {
birtRuntime group:"org.eclipse.birt", name: "birt-runtime", version:"3.7.1", ext: "zip"
compile zipTree(configurations.birtRuntime.getSingleFile()).matching({ include 'birt-runtime*/ReportEngine/lib/*'})
}
The error I get is: “Expected configuration ‘:birtRuntime’ to contain exactly one file, however, it contains no files.”
I have no clue where this message comes from. When using the zipTree functionality to add the files manually to our lib folder when executing the dist task, it works perfect.
I have tried multiple ways to solve this problem, but ran out of Ideas. Started using gradle like 2 weeks ago, so I don’t have much knowledge about it.