Interface PluginBuilder

All Known Implementing Classes:
PluginConfig.Builder

public interface PluginBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    automaticCleanup(Boolean automaticCleanup)
    Cleanup removed dependencies.
    void
    This will set the directory for all the default folder.
    void
    generateGradleTasks(Boolean generateGradleTasks)
    This will generate default tasks
    void
    gitDir(Object gitDir)
    This will set the directory in which the dependency will be created, it will not set the folder.
    void
    keepInitScriptUpdated(Boolean keepInitScriptUpdated)
    If set to false the generated mainInitScript will never be updated of fixed if changes are detected
    void
    mavenDir(Object mavenDir)
    Some Dependency types will publish the artifact to local maven repo.
    void
    persistentDir(Object persistentDir)
    This will set the directory in which the dependency data will be stored, it will not set the folder.
  • Method Details

    • defaultDir

      void defaultDir(Object dir)
      This will set the directory for all the default folder. The default is localGitDependency
      Parameters:
      dir - directory target
    • gitDir

      void gitDir(Object gitDir)
      This will set the directory in which the dependency will be created, it will not set the folder. If you set the path to "./libs" the dependency will make a directory based of the dependency name inside the folder
      Parameters:
      gitDir - directory target
    • persistentDir

      void persistentDir(Object persistentDir)
      This will set the directory in which the dependency data will be stored, it will not set the folder. If you set the path to "./folder" the dependency will make a directory based of the dependency name inside the folder
      Parameters:
      persistentDir - directory target
    • mavenDir

      void mavenDir(Object mavenDir)
      Some Dependency types will publish the artifact to local maven repo.
      Parameters:
      mavenDir - directory target
      See Also:
    • keepInitScriptUpdated

      void keepInitScriptUpdated(Boolean keepInitScriptUpdated)
      If set to false the generated mainInitScript will never be updated of fixed if changes are detected
      Parameters:
      keepInitScriptUpdated - If it should stay updated
    • generateGradleTasks

      void generateGradleTasks(Boolean generateGradleTasks)
      This will generate default tasks
      Parameters:
      generateGradleTasks - if it should create custom tasks
    • automaticCleanup

      void automaticCleanup(Boolean automaticCleanup)
      Cleanup removed dependencies. It's enabled by default, but if you specify a custom global path you must explicitly enable it. This is done because the cleanupManager will delete everything under those directories that doesn't mach with a registered dependency
      Parameters:
      automaticCleanup - if it should cleanup removed dependencies