Hi all,

I'm using gradle's multi-project builds in order to simplify several related
projects, but I'm not guessing how to import / export artifacts among them.

My use case: I have two projects using the WAR plugin, and they work as
consumer / producer. "Producer" is deployed as a WAR, but also generates a
JAR used by "consumer". The problem is that depending on "Producer" means
both on the JAR and the WAR, but I want to exclude the WAR. How can this be
done?

Here are the two snippets of my build.gradle files (my master project does
not declare any dependency):
build.gradle (remoteService)
...
jar.enabled = true
artifacts {
        archives jar
}

build.gradle (client)
...
compile project(':remoteService) {
        transitive = false
}

Thanks in advance. Regards
Rafa
-- 
View this message in context: 
http://www.nabble.com/Including-excluding-artifacts-when-a-project-depends-on-another-tp25960501p25960501.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