Markus Schlichting wrote:
> 
> ----
> dependsOn(':shared')
> 
> dependencies{
>     compile project(':shared')
> }
> 

dependsOn() shouldn't be necessary here as the compile dependency implicitly
creates an execution dependency.


Markus Schlichting wrote:
> 
> What would be the proper "gradle way" to exclude :shared from the
> dependencies that are used within the maven plugin tasks?
> 

The following should work:

configurations {
  shared
  compile.extendsFrom shared
}

dependencies {
  shared project(":shared")
}

--
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/Publishing-to-Maven-Remove-dependency-tp4381438p4381862.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