[GRADLE-506] NPE when trying to exclude dependencies and one has an empty group Created: 26/May/09  Updated: 04/Jan/13  Resolved: 27/May/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.6
Fix Version/s: 0.6.1

Type: Bug
Reporter: Rafael Serrano Assignee: Hans Dockter
Resolution: Fixed Votes: 0

Issue Links:
Related
Related to GRADLE-499 Error messages in the Gradle log when... Resolved

 Description   

Executing "myTask" in the following script results in a NPE. A possible workaround is specifying a group and moved the JARs
(see http://www.nabble.com/NPE-when-using-exclude-rules-td23728395.html)

repositories {
flatDir name: 'lib', dirs: "src/lib"
mavenCentral().checkconsistency = false
}

configurations {
all*.exclude group: "hsqldb"
}

dependencies {
compile "dk.eobjects.commons:MetaModel:1.0.7"
compile ":gdata-core:1.0"
}

task myTask << {
configurations.testRuntime.each

{ file -> println file }

}



 Comments   
Comment by Rafael Serrano [ 26/May/09 ]

Sorry, it works by specifying any group but without moving the JARs (just leaving them in the same directory)

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