Interface ProjectNameMapper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String invoke(String collection, String projectPath, Boolean flatten) Handles the mapping of a Gradle project path of the form :some:project:path including the collection directory name and the Boolean indicating whether middle projects should be flattened or preserved (i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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:path including the collection directory name and the Boolean indicating whether middle projects should be flattened or preserved (i.e. should :some and :project be 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 directory
        projectPath - the project path
        Returns:

        the string