Class PluginConfig.Builder

java.lang.Object
io.github.srdjanv.localgitdependency.config.impl.plugin.PluginConfigFields
io.github.srdjanv.localgitdependency.config.impl.plugin.PluginConfig.Builder
All Implemented Interfaces:
PluginBuilder
Enclosing class:
PluginConfig

public static class PluginConfig.Builder extends PluginConfigFields implements PluginBuilder
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • keepInitScriptUpdated

      public void keepInitScriptUpdated(Boolean keepInitScriptUpdated)
      Description copied from interface: PluginBuilder
      If set to false the generated mainInitScript will never be updated of fixed if changes are detected
      Specified by:
      keepInitScriptUpdated in interface PluginBuilder
      Parameters:
      keepInitScriptUpdated - If it should stay updated
    • generateGradleTasks

      public void generateGradleTasks(Boolean generateGradleTasks)
      Description copied from interface: PluginBuilder
      This will generate default tasks
      Specified by:
      generateGradleTasks in interface PluginBuilder
      Parameters:
      generateGradleTasks - if it should create custom tasks
    • automaticCleanup

      public void automaticCleanup(Boolean automaticCleanup)
      Description copied from interface: PluginBuilder
      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
      Specified by:
      automaticCleanup in interface PluginBuilder
      Parameters:
      automaticCleanup - if it should cleanup removed dependencies
    • defaultDir

      public void defaultDir(Object defaultDir)
      Description copied from interface: PluginBuilder
      This will set the directory for all the default folder. The default is localGitDependency
      Specified by:
      defaultDir in interface PluginBuilder
      Parameters:
      defaultDir - directory target
    • gitDir

      public void gitDir(Object dir)
      Description copied from interface: PluginBuilder
      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
      Specified by:
      gitDir in interface PluginBuilder
      Parameters:
      dir - directory target
    • persistentDir

      public void persistentDir(Object persistentDir)
      Description copied from interface: PluginBuilder
      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
      Specified by:
      persistentDir in interface PluginBuilder
      Parameters:
      persistentDir - directory target
    • mavenDir

      public void mavenDir(Object mavenDir)
      Description copied from interface: PluginBuilder
      Some Dependency types will publish the artifact to local maven repo.
      Specified by:
      mavenDir in interface PluginBuilder
      Parameters:
      mavenDir - directory target
      See Also: