JvmComponentDependencies

This DSL element is used to add dependencies to a component, like JvmTestSuite.

  • 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

See also

For more information.

Functions

Link copied to clipboard
Returns a DependencyAdder to add to the set of annotation processor dependencies.
Link copied to clipboard
Returns a DependencyAdder to add to the set of compile-only dependencies.
Link copied to clipboard
Link copied to clipboard
Returns a DependencyAdder to add to the set of implementation dependencies.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getProject(): Project
Link copied to clipboard
Returns a DependencyAdder to add to 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