ProjectNameMapper

fun interface ProjectNameMapper(source)

A converter for String and Boolean to String callback used to convert a org.gradle.api.invocation.Gradle projectPath into an alternative, shorter, form. This is to bring the existing plugin in line with Gradle best practices. See Best Practices - Structure - Avoid Empty Projects for more information.

See also

Functions

Link copied to clipboard
abstract operator fun invoke(projectPath: String, flatten: Boolean): String

Handles the mapping of a Gradle project path of the form :some:project:path including the Boolean indicating whether middle projects should be flattened or preserved (i.e. should :some and :project be created in creation :path)