Jvm Component Dependencies
interface JvmComponentDependencies : PlatformDependencyModifiers, TestFixturesDependencyModifiers, GradleDependencies(source)
This DSL element is used to add dependencies to a component, for instance a TestSuite
implementationdependencies are used at compilation and runtime.compileOnlydependencies are used only at compilation and are not available at runtime.runtimeOnlydependencies are not available at compilation and are used only at runtime.annotationProcessordependencies are used only at compilation for the annotation processor classpath
Since
7.3
See also
For more information.
Functions
Link copied to clipboard
Create a DependencyConstraint from the given notation.
Create a DependencyConstraint from a project.
open fun constraint(dependencyConstraint: Provider<out MinimalExternalModuleDependency>): Provider<out DependencyConstraint>
open fun constraint(dependencyConstraint: ProviderConvertible<out MinimalExternalModuleDependency>): Provider<out DependencyConstraint>
Create a DependencyConstraint from a minimal dependency.
Link copied to clipboard
Returns a DependencyCollector that collects the set of annotation processor dependencies.
Link copied to clipboard
Returns a DependencyCollector that collects the set of compile-only dependencies.
Link copied to clipboard
A dependency constraint factory is used to convert supported dependency notations into DependencyConstraint instances.
Link copied to clipboard
A dependency factory is used to convert supported dependency notations into org.gradle.api.artifacts.Dependency instances.
Link copied to clipboard
A dependency modifier that can modify a dependency to select an enforced platform variant.
Link copied to clipboard
Returns a DependencyCollector that collects the set of implementation dependencies.
Link copied to clipboard
Injected service to create named objects.
Link copied to clipboard
A dependency modifier that can modify a dependency to select a platform variant.
Link copied to clipboard
The current project.
Link copied to clipboard
Returns a DependencyCollector that collects the set of runtime-only dependencies.
Link copied to clipboard
A dependency modifier that can modify a dependency to select a test fixtures variant.
Link copied to clipboard
Creates a dependency on the API of the current version of Gradle.
Link copied to clipboard
Creates a dependency on the Gradle test-kit API.
Link copied to clipboard
Creates a dependency on the version of Groovy that is distributed with the current version of Gradle.
Link copied to clipboard
Create an ExternalModuleDependency from the given notation.
open fun module(@Nullable group: @Nullable String, name: String, @Nullable version: @Nullable String): ExternalModuleDependency
Create an ExternalModuleDependency from a series of strings.
Link copied to clipboard
Returns the current project as a ProjectDependency.
Converts an absolute or relative path to a project into a ProjectDependency.