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