Package modulecheck.parsing.gradle.dsl

Functions

Link copied to clipboard
suspend fun ConfigurationName.buildFileInvocationText(invokesConfigurationNames: InvokesConfigurationNames): String

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
Link copied to clipboard
suspend fun <T : PluginAware, HasDependencyDeclarations> T.createExternalDependencyDeclaration(    isKotlin: Boolean,     configInvocation: String,     configurationName: ConfigurationName,     identifier: Identifier,     isTestFixtures: Boolean): ExternalDependencyDeclaration
Link copied to clipboard
suspend fun <T : PluginAware, HasDependencyDeclarations> T.createProjectDependencyDeclaration(    isKotlin: Boolean,     configInvocation: String,     configurationName: ConfigurationName,     projectPath: ProjectPath,     isTestFixtures: Boolean): ModuleDependencyDeclaration
Link 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
Link copied to clipboard
private suspend fun HasBuildFile.projectAccessors(): Set<ProjectAccessor>
Link copied to clipboard
private suspend fun ConfigurationName.shouldUseQuotes(invokesConfigurationNames: InvokesConfigurationNames): Boolean

Returns true if the build file is Kotlin, and one of:

Link copied to clipboard
private fun ConfigurationName.wrapInQuotes(): String