Hi,
thank you for the quick answer, it seemed to work, but while digging
deeper into this, i've found a second solution:

uploadArchives {
    repositories.mavenDeployer {

        [....] (some configuration)

        pom.whenConfigured {pom ->
            def shared = pom.dependencies.find {dep -> dep.artifactId
== 'shared' }
            pom.dependencies.remove(shared)
        }
   }
}

and it seems to work just fine :)

Just for the record to show another possibility to solve this.

cheers
 Markus

Am 09.05.2011 15:35, schrieb Peter Niederwieser:
>
> 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")
> }


-- 
Canoo Engineering AG - your provider for business web solutions
<http://www.canoo.com/>
Markus Schlichting

Canoo Engineering AG
Kirschgartenstrasse 5
CH-4051 Basel
Tel:  +41 61 228 94 44
Fax: +41 61 228 94 49
[email protected] <mailto:[email protected]>
http://www.canoo.com

Reply via email to