NOTE: You can open this sample inside an IDE using the https://www.jetbrains.com/help/idea/gradle.html#gradle_import_project_start[IntelliJ native importer] or https://projects.eclipse.org/projects/tools.buildship[Eclipse Buildship].

This sample shows how to use dependencies within a JVM multi-project build in Gradle. This is the same pattern used by all JVM languages (Java, Groovy, Scala).

The `application` project has an implementation dependency on the `utilities` project:

====
include::sample[dir="samples/jvm-multi-project-build/groovy",files="application/build.gradle[]"]
include::sample[dir="samples/jvm-multi-project-build/kotlin",files="application/build.gradle.kts[]"]
====

Which in turn has an API dependency on the `list` project:

====
include::sample[dir="samples/jvm-multi-project-build/groovy",files="utilities/build.gradle[]"]
include::sample[dir="samples/jvm-multi-project-build/kotlin",files="utilities/build.gradle.kts[]"]
====

To build the projects, you simply need to build the application:

====
[.testable-sample,dir="groovy"]
=====
[.sample-command]
----
$ ./gradlew :application:run

> Task :application:run
Hello, World!

BUILD SUCCESSFUL in 998ms
6 actionable tasks: 6 executed
----
=====
====

For more information, see link:{userManualPath}/introduction_dependency_management.html[dependency management chapters].
