I have project A that generates a WAR. I have project B that needs to compile against the classes in project A. I cannot figure out how to do this.
I can retrieve the WAR:
dependencies {
compile 'mygroup:project-a:1.0.4-SNAPSHOT@war'
}
but compilation fails on the classes imported from that WAR.
Is there a way to get WEB-INF/classes on the compile classpath? Or do I have to publish a JAR from project A, in addition to the WAR, and just use that?
Thanks, Dan