[GRADLE-1896] Dependency exclusions not working in 1.0-milestone-6 Created: 05/Nov/11  Updated: 04/Jan/13  Resolved: 07/Nov/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-6
Fix Version/s: 1.0-milestone-6

Type: Bug
Reporter: Kelly Robinson Assignee: Unassigned
Resolution: Fixed Votes: 0


I tried the latest 1.0-milestone-6 and it appears to ignore dependency exclusions, unless the syntax has changed since 1.0-milestone-5

Comment by Kelly Robinson [ 05/Nov/11 ]
//This minimal build exposes the problem:

apply plugin: 'java'
repositories {
dependencies {
    compile("d-haven-mpool:managed-pool:1.0") {
        exclude(module: 'event')

task wrapper(type: Wrapper) {
//    gradleVersion = '1.0-milestone-3'
distributionUrl = 'http://repo.gradle.org/gradle/distributions-snapshots/gradle-1.0-milestone-6-20111105000031+0100-bin.zip'
Comment by Kelly Robinson [ 05/Nov/11 ]

This works in 1.0-milestone-3 and 1.0-milestone-5 but errors out with the latest version:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dependencies'.
Cause: Could not resolve all dependencies for configuration ':compile'.
Cause: Module event:event:1.0 not found. It is required by:
Generated at Wed Jun 30 12:07:17 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.