When using the JavaPlugin to build project B which depends on project A:

dependencies {
    compile project(':projectA')
}

the classes of project A are accessible from project B as long as project A
is setup to create a jar artifact. When however the WarPlugin is used for
project A, the dependency from Java project B to project A cannot be
resolved anymore. I believe this is because in an war archive the Java
packages are placed under WEB-INF/classes/ whereas in the jar archive they
are placed directly under the archive root.

So my question more generally would be: How can I tell Gradle where in an
artifact of type zip it can find libraries and classes that should be added
to the archive configuration?
-- 
View this message in context: 
http://old.nabble.com/How-does-Gradle-Resolve-an-Artifact-Classpath--tp27788687p27788687.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to