Skip to main content

Gradle Dependency Scopes Supported by Code Insight

The following list shows runtime and non-runtime Gradle-specific scopes that Code Insight currently supports for dependencies found in a build.gradle or build.gradle.kts file. The Gradle scope for a given dependency is converted to the broader Runtime or Non-Runtime scope in the scan results.

Runtime ScopesNon-Runtime Scopes
implementation
api
runtime
runtimeOnly
runtimeElements
runtimeClasspath
providedCompile
providedRuntime
default
sourceSetRuntime
sourceSetRuntimeOnly
sourceSetRuntimeClasspath
apk
compile
kapt
classPath
compileOnlyApi
compileOnly
testImplementation
testCompileOnly
testRunTimeOnly
compileOnlyApi
apiElements
compileClasspath
testCompileClasspath
testRuntimeClasspath
annotationProcessor
testCompile
testRuntime
sourceSetCompile
sourceSetImplementation
sourceSetCompileOnly
sourceSetCompileClasspath
sourceSetAnnotationProcessor
provided
testFixturesImplementation
kaptAndroidTest
kaptTest
testAnnotationProcessor
androidTestImplementation
androidTestApi
androidTestUtil
EnforcedPlatform
debugImplementation
releaseImplementation
androidTestImplementation
androidTestCompile
gradleApi
gradleTestKit