Package org.gradle.api.plugins.jvm
Interface JvmComponentDependencies
- All Superinterfaces:
- Dependencies,- GradleDependencies,- PlatformDependencyModifiers,- TestFixturesDependencyModifiers
@Incubating
public interface JvmComponentDependencies
extends PlatformDependencyModifiers, TestFixturesDependencyModifiers, GradleDependencies
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:
- API Note:
- This interface combines various DependenciesAPIs 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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.plugins.jvm.PlatformDependencyModifiersPlatformDependencyModifiers.EnforcedPlatformDependencyModifier, PlatformDependencyModifiers.PlatformDependencyModifierNested classes/interfaces inherited from interface org.gradle.api.plugins.jvm.TestFixturesDependencyModifiersTestFixturesDependencyModifiers.TestFixturesDependencyModifier
- 
Method SummaryModifier and TypeMethodDescriptionReturns aDependencyCollectorthat collects the set of annotation processor dependencies.Returns aDependencyCollectorthat collects the set of compile-only dependencies.Returns aDependencyCollectorthat collects the set of implementation dependencies.Returns aDependencyCollectorthat collects the set of runtime-only dependencies.Methods inherited from interface org.gradle.api.artifacts.dsl.Dependenciesconstraint, constraint, constraint, constraint, getDependencyConstraintFactory, getDependencyFactory, getObjectFactory, getProject, module, module, project, projectMethods inherited from interface org.gradle.api.artifacts.dsl.GradleDependenciesgradleApi, gradleTestKit, localGroovyMethods inherited from interface org.gradle.api.plugins.jvm.PlatformDependencyModifiersgetEnforcedPlatform, getPlatformMethods inherited from interface org.gradle.api.plugins.jvm.TestFixturesDependencyModifiersgetTestFixtures
- 
Method Details- 
getImplementationDependencyCollector getImplementation()Returns aDependencyCollectorthat collects the set of implementation dependencies.implementationdependencies are used at compilation and runtime.- Returns:
- a DependencyCollectorthat collects the set of implementation dependencies
- Since:
- 7.6
 
- 
getCompileOnlyDependencyCollector getCompileOnly()Returns aDependencyCollectorthat collects the set of compile-only dependencies.compileOnlydependencies are used only at compilation and are not available at runtime.- Returns:
- a DependencyCollectorthat collects the set of compile-only dependencies
- Since:
- 7.6
 
- 
getRuntimeOnlyDependencyCollector getRuntimeOnly()Returns aDependencyCollectorthat collects the set of runtime-only dependencies.runtimeOnlydependencies are not available at compilation and are used only at runtime.- Returns:
- a DependencyCollectorthat collects the set of runtime-only dependencies
- Since:
- 7.6
 
- 
getAnnotationProcessorDependencyCollector getAnnotationProcessor()Returns aDependencyCollectorthat collects the set of annotation processor dependencies.annotationProcessordependencies are used only at compilation, and are added to the annotation processor classpath.- Returns:
- a DependencyCollectorthat collects the of annotation processor dependencies
- Since:
- 7.6
 
 
-