[GRADLE-2036] Excludes DSL needs some improvements (error on unknown keys, error if no valid keys) Created: 06/Jan/12  Updated: 04/Jan/13  Resolved: 08/May/12

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

Type: Bug
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

There are several problems with the dependency excludes DSL. I'm talking about...

configurations {
compile ("foo:bar:1.0")

{ exclude «stuff here» }

}

One problem is that `exclude [:]` is effectively `exclude module: "", group: ""`. This gets worse when people get one of the keys wrong, `exclude name: "baz"`, as this will just silently exclude everything.

Another is that `module` is probably the wrong key to be looking for, it should probably be `name`.

We should also fail early if a key is used that we don't support, and internally this should use the notation parser mechanism.



 Comments   
Comment by Jacob Aleksynas [ 30/Apr/12 ]

Additionally an exclude for type would be a very welcome addition.

Generated at Wed Jun 30 12:11:03 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.