Does gradle handle ivy tags correctly?

I am trying to use the Hadoop class MiniDFSCluster in a test. For that, I would have to introduce in my project a dependency that looks like:

testCompile('org.apache.hadoop:hadoop-hdfs:2.2.0:tests')

However, gradle does not seem to pull in the right dependency with that line in my build.gradle. When I grep in all the Hadoop jars in my ~/.gradle and I can’t find MiniDFSClusterBase. What am I missing? Can gradle handle Ivy tags correctly?

Details of my gradle version:


Gradle 2.13

Build time: 2016-04-25 04:10:10 UTC
Build number: none
Revision: 3b427b1481e46232107303c90be7b05079b05b1c

Groovy: 2.4.4
Ant: Apache Ant™ version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_102 (Oracle Corporation 25.102-b14)
OS: Mac OS X 10.11.6 x86_64