Exclude transitive dependency using wildcard?

I just started looking into porting our existing maven builds to gradle a few days ago and I’ve been very happy thus far. I was wondering if there is a way to exclude all transitive dependencies for a given dependency using wildcard syntax. If so, can you please give an example?

I found the answer to my question…

compile(‘org.slf4j:slf4j-simple:1.6.4’) {

transitive = false

}