Package modulecheck.parsing.gradle.dsl
Functions
Link copied to clipboard
suspend fun ConfigurationName.buildFileInvocationText(invokesConfigurationNames: InvokesConfigurationNames): String
Content copied to clipboard
Attempts to determine the most idiomatic way of invoking the receiver configuration name. Typically, this will just be a function with a matching name. However, if a configuration is non-standard (e.g. internalReleaseImplementation
) and the build file is using the Kotlin Gradle DSL, then the configuration must be invoked as a String extension function instead (e.g. "internalReleaseImplementation"(libs.myDependency)
).
Link copied to clipboard
suspend fun <T : PluginAware, HasDependencyDeclarations> T.createDependencyDeclaration( configurationName: ConfigurationName, identifier: Identifier, isTestFixtures: Boolean): DependencyDeclaration
Content copied to clipboard
Link copied to clipboard
suspend fun <T : PluginAware, HasDependencyDeclarations> T.createExternalDependencyDeclaration( isKotlin: Boolean, configInvocation: String, configurationName: ConfigurationName, identifier: Identifier, isTestFixtures: Boolean): ExternalDependencyDeclaration
Content copied to clipboard
Link copied to clipboard
suspend fun <T : PluginAware, HasDependencyDeclarations> T.createProjectDependencyDeclaration( isKotlin: Boolean, configInvocation: String, configurationName: ConfigurationName, projectPath: ProjectPath, isTestFixtures: Boolean): ModuleDependencyDeclaration
Content copied to clipboard
Link copied to clipboard
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:
private tailrec fun <T : PluginAware, HasDependencyDeclarations> SourceSetName.isDefinitelyPrecompiledForProject(project: T): Boolean
Content copied to clipboard
Link copied to clipboard
private suspend fun HasBuildFile.projectAccessors(): Set<ProjectAccessor>
Content copied to clipboard
Link copied to clipboard
private suspend fun ConfigurationName.shouldUseQuotes(invokesConfigurationNames: InvokesConfigurationNames): Boolean
Content copied to clipboard
Returns true if the build file is Kotlin, and one of:
Link copied to clipboard