isDefinitelyPrecompiledForProject
suspend fun ConfigurationName.isDefinitelyPrecompiledForProject(project: HasDependencyDeclarations): Boolean(source)
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)
Content copied to clipboard
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)
Content copied to clipboard
Receiver
the configuration name which may have an accessor
Return
true
if we can know for sure that it's pre-compiled. false
if we aren't certain.
Since
0.12.0
Parameters
project
the project in which the configuration name is being used
private tailrec fun SourceSetName.isDefinitelyPrecompiledForProject(project: HasDependencyDeclarations): Boolean(source)