# Composite build with a dependency on a multimodule build

**URL:** <https://discuss.gradle.org/t/composite-build-with-a-dependency-on-a-multimodule-build/39558>\
**Category:** Help/Discuss\
**Created:** [April 8, 2021, 7:08am UTC](https://discuss.gradle.org/t/composite-build-with-a-dependency-on-a-multimodule-build/39558 "2021-04-08T07:08:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeflatedPickle](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@DeflatedPickle](https://discuss.gradle.org/u/DeflatedPickle)\
**Post date:** [April 8, 2021, 7:08am UTC](https://discuss.gradle.org/t/composite-build-with-a-dependency-on-a-multimodule-build/39558/1 "2021-04-08T07:08:09Z")

</div>

Consider the following project; [build](https://github.com/DeflatedPickle/Quiver/blob/rewrite/build.gradle), [settings](https://github.com/DeflatedPickle/Quiver/blob/rewrite/settings.gradle)  
This project is a composite build for a main program and plugins for a system I created, which is also an `includeBuild` for this project (`/libs/haruhi`)  
I have dependencies on multiple libraries, located in `/libs/`, but there’s one library I can’t work out the syntax for including, and this is `/libs/sniffle`. That project is a multimodule build of 4 plugins, with no home elsewhere, the root build should have access to. I can’t add each plugin as a composite build as some depend directly on others, unless my choice of syntax was just wrong which is highly likely  
I’ve tried what was proposed in [this](https://discuss.gradle.org/t/gradle-composite-builds-can-you-have-a-dependency-to-a-java-sub-project-from-an-included-multi-project-build/27887) question, however, I don’t understand deeper Gradle ideas to understand what I was doing wrong in my interpretation of it

If more information is needed, I can provide it upon request. Thanks for reading, I hope you can help

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 10, 2021, 11:45pm UTC](https://discuss.gradle.org/t/composite-build-with-a-dependency-on-a-multimodule-build/39558/2 "2021-04-10T23:45:38Z")

</div>

If you call the `projects` task on the sniffle build, you see there are the projects

```gradle
Root project 'sniffle'
+--- Project ':discordrpc'
+--- Project ':pluginmanager'
+--- Project ':settingsgui'
\--- Project ':tipoftheday'

```

If you then call the `:discordrpc:outgoingVariants` task on the sniffle build, you see in the outgoing variants:

```gradle
Capabilities
    - sniffle:discordrpc:unspecified (default capability)

```

So what you want is for example `implementation("sniffle:discordrpc")`.
