project

open fun project(path: String, configuration: String? = null): ProjectDependency

Creates a Gradle project dependency.

Note: The created dependency should be manually added to this entity using other methods from this DSL:

kotlin.sourceSets["jvmMain"].dependencies {
implementation(project(":my-library", "customLibraryConfiguration"))
}

Parameters

path

The project path

configuration

The optional target configuration in the project


abstract fun project(notation: Map<String, Any?>): ProjectDependency

Creates a Gradle project dependency.

Note: The created dependency should be manually added to this entity using other methods from this DSL:

kotlin.sourceSets["jvmMain"].dependencies {
implementation(project(mapOf("path" to ":project-a", "configuration" to "someOtherConfiguration")))
}

Parameters

notation

Project notation described in DependencyHandler.