We have code that depends on org.apache.crunch:crunch-core:0.8.0-cdh4.3.0 and org.apache.crunch:crunch-hbase:0.8.0-cdh4.3.0, neither of which can be resolved because of the following problems:
> Could not resolve org.apache.crunch:crunch-core:0.8.0-cdh4.3.0. ... > Could not parse POM /Users/Shared/m2_repo/org/apache/crunch/crunch-core/0.8.0-cdh4.3.0/crunch-core-0.8.0-cdh4.3.0.pom > Unable to resolve version for dependency 'org.apache.hadoop:hadoop-client:jar' > Could not parse POM https://repository.cloudera.com/artifactory/cloudera-repos/org/apache/crunch/crunch-core/0.8.0-cdh4.3.0/crunch-core-0.8.0-cdh4.3.0.pom > Unable to resolve version for dependency 'org.apache.hadoop:hadoop-client:jar' > Could not resolve org.apache.crunch:crunch-hbase:0.8.0-cdh4.3.0. ... > Could not parse POM /Users/Shared/m2_repo/org/apache/crunch/crunch-hbase/0.8.0-cdh4.3.0/crunch-hbase-0.8.0-cdh4.3.0.pom > Unable to resolve version for dependency 'org.apache.hbase:hbase:jar' > Could not parse POM https://repository.cloudera.com/artifactory/cloudera-repos/org/apache/crunch/crunch-hbase/0.8.0-cdh4.3.0/crunch-hbase-0.8.0-cdh4.3.0.pom > Unable to resolve version for dependency 'org.apache.hbase:hbase:jar'
If you look at the crunch-core-0.8.0-cdh4.3.0.pom and crunch-hbase-0.8.0-cdh4.3.0.pom you’ll see that they inherit their versions for hadoop-client and hbase from a crunch-parent POM. That parent POM shows that those versions are defined by hadoop.version and hbase.version properties that are set in a “hadoop-1” profile automatically-activated when the crunch.platform property is not specified.
To summarize, it appears that Gradle does not see that this profile is active and consequently does not realize the hadoop.version and hbase.versions.