I have a project that is acting as an intermediary between two others. This project has multiple flatDir dependencies. One dependency is a simple jar file, which loads with no problems. The other dependency is a war file containing a mid sized web app. Gradle keeps ignoring the war in the local filesystem and attempts to look for it in Maven Central. Interestingly, if I rename the war file to .jar, Gradle will find it but doesn’t load any classes. I still land up with a bunch of package not found errors. Is there a way to add dependencies from a local war file?
Here’s my repo and dep config:
repositories {
mavenCentral()
flatDir name: 'coralDependencies', dirs: '../coral/dist'
flatDir name: 'configurationDependencies', dirs: '../configuration-service/build/libs'
}
dependencies {
compile
'javax.servlet:servlet-api:2.5',
'com.fasterxml.jackson.core:jackson-databind:2.1.3',
'commons-logging:commons-logging:1.1.3',
':coral:4.1.3',
':configuration-service:1.0.0-SNAPSHOT'
testCompile 'junit:junit:4.+'
}