szczepiq wrote:
>
> One of the ways is to use configurations:
>
> Project A:
> apply plugin: 'java'
>
> configurations {
> extraJars
> }
>
> ...
>
> artifacts {
> extraJars javadocJar
> extraJars sourcesJar
> }
>
The only question is if this can cause problems when publishing the source
and javadoc artifacts (since they are no longer part of the 'archives'
configuration). Not sure.
szczepiq wrote:
>
> Project B:
> apply plugin: 'war'
>
> dependencies {
> compile project(path: ':A', configuration: 'archives')
> }
>
This should probably be "configuration: 'default'"; otherwise transitive
dependencies won't be included. And since 'default' is the default :-), it
can be omitted.
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/War-includes-sources-javadoc-jars-tp4255274p4257425.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