JvmComponentDependencies

This DSL element is used to add dependencies to a component, for instance a TestSuite

  • implementation dependencies are used at compilation and runtime.
  • compileOnly dependencies are used only at compilation and are not available at runtime.
  • runtimeOnly dependencies are not available at compilation and are used only at runtime.
  • annotationProcessor dependencies are used only at compilation for the annotation processor classpath

Since

7.3

See also

For more information.

Functions

Link copied to clipboard
open fun constraint(dependencyConstraintNotation: CharSequence): DependencyConstraint
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
Link copied to clipboard
Returns a DependencyCollector that collects the set of implementation dependencies.
Link copied to clipboard
Link copied to clipboard
abstract fun getProject(): Project
Link copied to clipboard
Returns a DependencyCollector that collects the set of runtime-only dependencies.
Link copied to clipboard
open fun gradleApi(): Dependency
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun module(dependencyNotation: CharSequence): ExternalModuleDependency
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.

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