# Dependency not pulling in transitives

**URL:** <https://discuss.gradle.org/t/dependency-not-pulling-in-transitives/1450>\
**Category:** Old Forum Archive\
**Created:** [September 23, 2013, 8:55pm UTC](https://discuss.gradle.org/t/dependency-not-pulling-in-transitives/1450 "2013-09-23T20:55:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Manes](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/benjamin_manes/32/112_2.png) [@Benjamin\_Manes](https://discuss.gradle.org/u/Benjamin_Manes)\
**Post date:** [September 23, 2013, 8:55pm UTC](https://discuss.gradle.org/t/dependency-not-pulling-in-transitives/1450/1 "2013-09-23T20:55:00Z")

</div>

I am setting up Apache Kafka and oddly transitive dependencies are not being brought in. The [pom.xml](http://search.maven.org/remotecontent?filepath=org/apache/kafka/kafka_2.9.1/0.8.0-beta1/kafka_2.9.1-0.8.0-beta1.pom) looks correct and I verified with Gradle v1.7 and v1.8-rc-2. I wrote a sample project and oddly ‘gradle dependencies’ lists it as a failure, but any other dependency that I add resolves. Below is a sample,

```gradle
apply plugin: 'java'
  repositories {
  mavenCentral()
}
  dependencies {
  compile 'org.apache.kafka:kafka_2.9.2:0.8.0-beta1'
}

```

```gradle
$ ./gradlew dependencies
 :dependencies
  ------------------------------------------------------------
Root project
------------------------------------------------------------
  archives - Configuration for archive artifacts.
No dependencies
  compile - Compile classpath for source set 'main'.
\--- org.apache.kafka:kafka_2.9.2:0.8.0-beta1 FAILED
  default - Configuration for default artifacts.
\--- org.apache.kafka:kafka_2.9.2:0.8.0-beta1 FAILED
  runtime - Runtime classpath for source set 'main'.
\--- org.apache.kafka:kafka_2.9.2:0.8.0-beta1 FAILED
  testCompile - Compile classpath for source set 'test'.
\--- org.apache.kafka:kafka_2.9.2:0.8.0-beta1 FAILED
  testRuntime - Runtime classpath for source set 'test'.
\--- org.apache.kafka:kafka_2.9.2:0.8.0-beta1 FAILED
  BUILD SUCCESSFUL
  Total time: 4.839 secs

```

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [September 24, 2013, 5:57am UTC](https://discuss.gradle.org/t/dependency-not-pulling-in-transitives/1450/2 "2013-09-24T05:57:00Z")

</div>

That POM has _two_ ‘dependencies’ sections, and the first one is completely broken. Looks like a leftover from an ‘ivy.xml’.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Manes](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/benjamin_manes/32/112_2.png) [@Benjamin\_Manes](https://discuss.gradle.org/u/Benjamin_Manes)\
**Post date:** [September 24, 2013, 6:13am UTC](https://discuss.gradle.org/t/dependency-not-pulling-in-transitives/1450/3 "2013-09-24T06:13:00Z")

</div>

oh, of course! Thanks =)
