invoke

abstract operator fun invoke(projectPath: String, flatten: Boolean): String(source)

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)

projectMapper = { projectPath: String, flatten: Boolean ->
// do something with `projectPath` and `flatten`
return projectPath
}

Return

the string

Parameters

projectPath

the project path

flatten