isDefinitelyPrecompiledForProject

Precompiled configuration names are names which are added by a pre-compiled plugin. These names can be used as functions in Kotlin scripts. examples:

api("some-dependency")
testImplementation(project(":my-lib"))
kapt(libs.dagger)

If a configuration is added in a local build script, then it won't have a function associated with it. In this case, the Kotlin script supports using a String extension function:

"internalReleaseApi"(libs.timber)

Return

true if we can know for sure that it's pre-compiled. false if we aren't certain.

Parameters

project

the project in which the configuration name is being used


private tailrec fun <T : PluginAware, HasDependencyDeclarations> SourceSetName.isDefinitelyPrecompiledForProject(project: T): Boolean

Sources

Link copied to clipboard
Link copied to clipboard