Dependencies
, GradleDependencies
, PlatformDependencyModifiers
, TestFixturesDependencyModifiers
@Incubating public interface JvmComponentDependencies extends PlatformDependencyModifiers, TestFixturesDependencyModifiers, GradleDependencies
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 classpathFor more information.
Dependencies
APIs into a DSL type that can be used to add dependencies for JVM components.PlatformDependencyModifiers.EnforcedPlatformDependencyModifier, PlatformDependencyModifiers.PlatformDependencyModifier
TestFixturesDependencyModifiers.TestFixturesDependencyModifier
Modifier and Type | Method | Description |
---|---|---|
DependencyCollector |
getAnnotationProcessor() |
Returns a
DependencyCollector that collects the set of annotation processor dependencies. |
DependencyCollector |
getCompileOnly() |
Returns a
DependencyCollector that collects the set of compile-only dependencies. |
DependencyCollector |
getImplementation() |
Returns a
DependencyCollector that collects the set of implementation dependencies. |
DependencyCollector |
getRuntimeOnly() |
Returns a
DependencyCollector that collects the set of runtime-only dependencies. |
constraint, constraint, constraint, constraint, getDependencyConstraintFactory, getDependencyFactory, getObjectFactory, getProject, module, module, project, project
gradleApi, gradleTestKit, localGroovy
getEnforcedPlatform, getPlatform
getTestFixtures
DependencyCollector getImplementation()
DependencyCollector
that collects the set of implementation dependencies.
implementation
dependencies are used at compilation and runtime.
DependencyCollector
that collects the set of implementation dependenciesDependencyCollector getCompileOnly()
DependencyCollector
that collects the set of compile-only dependencies.
compileOnly
dependencies are used only at compilation and are not available at runtime.
DependencyCollector
that collects the set of compile-only dependenciesDependencyCollector getRuntimeOnly()
DependencyCollector
that collects the set of runtime-only dependencies.
runtimeOnly
dependencies are not available at compilation and are used only at runtime.
DependencyCollector
that collects the set of runtime-only dependenciesDependencyCollector getAnnotationProcessor()
DependencyCollector
that collects the set of annotation processor dependencies.
annotationProcessor
dependencies are used only at compilation, and are added to the annotation processor classpath.
DependencyCollector
that collects the of annotation processor dependencies