# Gradle project dependencies not added to generated ivy.xml

**URL:** <https://discuss.gradle.org/t/gradle-project-dependencies-not-added-to-generated-ivy-xml/3971>\
**Category:** Old Forum Archive\
**Created:** [June 5, 2014, 7:35pm UTC](https://discuss.gradle.org/t/gradle-project-dependencies-not-added-to-generated-ivy-xml/3971 "2014-06-05T19:35:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Humphrey](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Brian\_Humphrey](https://discuss.gradle.org/u/Brian_Humphrey)\
**Post date:** [June 5, 2014, 7:35pm UTC](https://discuss.gradle.org/t/gradle-project-dependencies-not-added-to-generated-ivy-xml/3971/1 "2014-06-05T19:35:00Z")

</div>

I am running into an issue when publishing artifacts to using the ‘ivy-publish’ plugin. There are multiple modules where I publish a custom jar or a couple custom jars and the ivy.xml file does not add the project dependencies. Would this be because they are custom jars or something else?

Here is a sample of how I am publishing.

```gradle
publishing{
    publications{
        client(IvyPublication){
            organisation "${group}"
            module "${module_name}"
            revision "${version}"
              artifact (file("${buildDir}/dist/${module_context}.jar")){
                name "${module_name}"
                extension 'jar'
            }
        }
    }
}

```

These are the dependencies that are being used by the project.

```gradle
dependencies{
    compile (group:"com.xxxxxxx", name:"xxxx-svcs-common", version:"${xxxx_svcs_common_service_version}", transitive:false)
    compile (group:"com.xxxxxxx.cache", name:"xxxx-cache", version:"${xxxx_svcs_common_svcs_cache_version}", transitive:false)
    compile (group:"com.sun.jersey", name:"jersey", version:"1.8", transitive:false)
    compile (group:"com.oracle", name:"coherence", version:"3.7.1", transitive:false)
    compile (group:"com.xxxxxxx.cache", name:"xxxx-cache", version:"${xxxx_entsvcs_common_svcs_cache_version}", transitive:false)
}

```

And this is the ivy.xml that is generated.

```gradle
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
  <info organisation="xxx.xxxxxxx" module="xxxx-service-name" revision="xxx2014_jun-201406051004" status="integration" publication="20140605100413"/>
  <configurations/>
  <publications>
    <artifact name="xxxx-service-name" type="jar" ext="jar"/>
  </publications>
  <dependencies/>
</ivy-module>

```

Any help would be greatly appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![daz](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daz/32/2475_2.png) [@daz](https://discuss.gradle.org/u/daz)\
**Post date:** [July 2, 2014, 4:42pm UTC](https://discuss.gradle.org/t/gradle-project-dependencies-not-added-to-generated-ivy-xml/3971/2 "2014-07-02T16:42:00Z")

</div>

The simplest way to have the dependencies published with your jar is to publish the Java ‘component’ for the project. You can read about how to do this in [http://www.gradle.org/docs/nightly/userguide/publishing\_ivy.html](http://www.gradle.org/docs/nightly/userguide/publishing_ivy.html).
