isDefinitelyPrecompiledForProject
suspend fun <T : PluginAware, HasDependencyDeclarations> ConfigurationName.isDefinitelyPrecompiledForProject(project: T): Boolean
Content copied to clipboard
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
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
Content copied to clipboard