Interface JvmComponentDependencies

All Superinterfaces:
Dependencies, GradleDependencies, PlatformDependencyModifiers, TestFixturesDependencyModifiers

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:
API Note:
This interface combines various Dependencies APIs into a DSL type that can be used to add dependencies for JVM components.
Implementation Requirements:
The default implementation of all methods should not be overridden.
  • Method Details

    • getImplementation

      DependencyCollector getImplementation()
      Returns a DependencyCollector that collects the set of implementation dependencies.

      implementation dependencies are used at compilation and runtime.

      Returns:
      a DependencyCollector that collects the set of implementation dependencies
      Since:
      7.6
    • getCompileOnly

      DependencyCollector getCompileOnly()
      Returns a DependencyCollector that collects the set of compile-only dependencies.

      compileOnly dependencies are used only at compilation and are not available at runtime.

      Returns:
      a DependencyCollector that collects the set of compile-only dependencies
      Since:
      7.6
    • getRuntimeOnly

      DependencyCollector getRuntimeOnly()
      Returns a DependencyCollector that collects the set of runtime-only dependencies.

      runtimeOnly dependencies are not available at compilation and are used only at runtime.

      Returns:
      a DependencyCollector that collects the set of runtime-only dependencies
      Since:
      7.6
    • getAnnotationProcessor

      DependencyCollector getAnnotationProcessor()
      Returns a DependencyCollector that collects the set of annotation processor dependencies.

      annotationProcessor dependencies are used only at compilation, and are added to the annotation processor classpath.

      Returns:
      a DependencyCollector that collects the of annotation processor dependencies
      Since:
      7.6