Package org.gradle.api.plugins.jvm
Schnittstelle JvmComponentDependencies
- Alle Superschnittstellen:
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
- Seit:
- 7.3
- Siehe auch:
- 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.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.plugins.jvm.PlatformDependencyModifiers
PlatformDependencyModifiers.EnforcedPlatformDependencyModifier, PlatformDependencyModifiers.PlatformDependencyModifierVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.plugins.jvm.TestFixturesDependencyModifiers
TestFixturesDependencyModifiers.TestFixturesDependencyModifier -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns 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.Von Schnittstelle geerbte Methoden org.gradle.api.artifacts.dsl.Dependencies
constraint, constraint, constraint, constraint, getDependencyConstraintFactory, getDependencyFactory, getObjectFactory, getProject, module, module, project, projectVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.dsl.GradleDependencies
gradleApi, gradleTestKit, localGroovyVon Schnittstelle geerbte Methoden org.gradle.api.plugins.jvm.PlatformDependencyModifiers
getEnforcedPlatform, getPlatformVon Schnittstelle geerbte Methoden org.gradle.api.plugins.jvm.TestFixturesDependencyModifiers
getTestFixtures
-
Methodendetails
-
getImplementation
DependencyCollector getImplementation()Returns aDependencyCollectorthat collects the set of implementation dependencies.implementationdependencies are used at compilation and runtime.- Gibt zurück:
- a
DependencyCollectorthat collects the set of implementation dependencies - Seit:
- 7.6
-
getCompileOnly
DependencyCollector getCompileOnly()Returns aDependencyCollectorthat collects the set of compile-only dependencies.compileOnlydependencies are used only at compilation and are not available at runtime.- Gibt zurück:
- a
DependencyCollectorthat collects the set of compile-only dependencies - Seit:
- 7.6
-
getRuntimeOnly
DependencyCollector getRuntimeOnly()Returns aDependencyCollectorthat collects the set of runtime-only dependencies.runtimeOnlydependencies are not available at compilation and are used only at runtime.- Gibt zurück:
- a
DependencyCollectorthat collects the set of runtime-only dependencies - Seit:
- 7.6
-
getAnnotationProcessor
DependencyCollector getAnnotationProcessor()Returns aDependencyCollectorthat collects the set of annotation processor dependencies.annotationProcessordependencies are used only at compilation, and are added to the annotation processor classpath.- Gibt zurück:
- a
DependencyCollectorthat collects the of annotation processor dependencies - Seit:
- 7.6
-