# Kotlin java-library module included into composite build loses its dependencies

**URL:** <https://discuss.gradle.org/t/kotlin-java-library-module-included-into-composite-build-loses-its-dependencies/30578>\
**Category:** Help/Discuss\
**Created:** [February 14, 2019, 10:04am UTC](https://discuss.gradle.org/t/kotlin-java-library-module-included-into-composite-build-loses-its-dependencies/30578 "2019-02-14T10:04:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisjr](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@chrisjr](https://discuss.gradle.org/u/chrisjr)\
**Post date:** [February 14, 2019, 10:04am UTC](https://discuss.gradle.org/t/kotlin-java-library-module-included-into-composite-build-loses-its-dependencies/30578/1 "2019-02-14T10:04:20Z")

</div>

Hi,

I am using Gradle 5.2 with a multi-module composite build, and I am trying to include one of the composed modules as a `testImplementation` dependency. However, while Gradle successfully adds the modules’ own classes to the test classpath, it fails also to include all of the module’s transitive dependencies! The reason for this appears to be that the composed module (which happens to be written in Kotlin) applies the `java-library` plugin. Removing the `java-library` plugin from the composed module restores its transitive dependencies.

This does appear to be a Gradle bug - but does anyone know of a workaround please?  
Thanks,  
Chris
