Interface ProjectNameMapper
-
- All Implemented Interfaces:
public interface ProjectNameMapperA converter for String and Boolean to String callback used to convert a org.gradle.api.invocation.Gradle
projectPathinto an alternative, shorter, form. This is to bring the existing plugin in line withGradlebest practices. See Best Practices - Structure - Avoid Empty Projects for more information.
-
-
Method Summary
Modifier and Type Method Description abstract Stringinvoke(String collection, String projectPath, Boolean flatten)Handles the mapping of a Gradle project path of the form :some:project:pathincluding the collection directory name and theBooleanindicating whether middle projects should be flattened or preserved (i.e.-
-
Method Detail
-
invoke
abstract String invoke(String collection, String projectPath, Boolean flatten)
Handles the mapping of a Gradle project path of the form
:some:project:pathincluding the collection directory name and theBooleanindicating whether middle projects should be flattened or preserved (i.e. should:someand:projectbe created in creating:path)projectMapper = { collection: String, projectPath: String, flatten: Boolean -> // do something with `collection`, `projectPath`, and `flatten` return projectPath }- Parameters:
collection- the collection name/top-level directoryprojectPath- the project path- Returns:
the string
-
-
-
-