Reputation: 1987
Based on the gradle docs, to define external jars means adding to build.gradle
the following snippet (considering you have {project_root}/libs/foo.jar) in place:
dependencies {
runtime files('libs/foo.jar')
}
However, using the same dependency declaration for *.war
files doesn't work. Is this even possible? The project I'm trying to depend on builds to a war file.
Upvotes: 1
Views: 1688
Reputation: 84864
Since war layout is different from jar file standard layout, it's not possible to declare war a dependency file to a java project. Possible ideas:
Upvotes: 1