# GradleDependencies

interface GradleDependencies : Dependencies(source)

Dependency APIs available for `dependencies` blocks that can build software that relies on Gradle APIs.

#### Since

7.6

#### Inheritors

JvmComponentDependencies

## Functions

constraint
Link copied to clipboard
open fun constraint(dependencyConstraintNotation: CharSequence): DependencyConstraint
open fun constraint(dependencyConstraint: Provider<out MinimalExternalModuleDependency>): Provider<out DependencyConstraint>
getDependencyConstraintFactory
Link copied to clipboard
abstract fun getDependencyConstraintFactory(): DependencyConstraintFactory
getDependencyFactory
Link copied to clipboard
abstract fun getDependencyFactory(): DependencyFactory
getObjectFactory
Link copied to clipboard
abstract fun getObjectFactory(): ObjectFactory
getProject
Link copied to clipboard
abstract fun getProject(): Project
gradleApi
Link copied to clipboard
open fun gradleApi(): Dependency
Creates a dependency on the API of the current version of Gradle.
gradleTestKit
Link copied to clipboard
open fun gradleTestKit(): Dependency
Creates a dependency on the Gradle test-kit API.
localGroovy
Link copied to clipboard
open fun localGroovy(): Dependency
Creates a dependency on the version of Groovy that is distributed with the current version of Gradle.
module
Link copied to clipboard
open fun module(dependencyNotation: CharSequence): ExternalModuleDependency
module
Link copied to clipboard
fun Dependencies.module(group: String?, name: String, version: String?): ExternalModuleDependency

Creates a dependency based on the group, name and version (GAV) coordinates.

project
Link copied to clipboard
open fun project(projectPath: String): ProjectDependency