Class DefaultableConfig.Builder

java.lang.Object
io.github.srdjanv.localgitdependency.config.impl.defaultable.DefaultableConfigFields
io.github.srdjanv.localgitdependency.config.impl.defaultable.DefaultableConfig.Builder
All Implemented Interfaces:
DefaultableBuilder
Enclosing class:
DefaultableConfig

public static class DefaultableConfig.Builder extends DefaultableConfigFields implements DefaultableBuilder
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • keepGitUpdated

      public void keepGitUpdated(Boolean keepGitUpdated)
      Description copied from interface: DefaultableBuilder
      This will try to keep the gir repo of the dependency updated
      Specified by:
      keepGitUpdated in interface DefaultableBuilder
      Parameters:
      keepGitUpdated - True if the plugin should update the git repo if the target commit changes
    • keepInitScriptUpdated

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

      public void dependencyType(Dependency.Type dependencyType)
      Description copied from interface: DefaultableBuilder
      How the dependency is going to be added to the project
      Specified by:
      dependencyType in interface DefaultableBuilder
      Parameters:
      dependencyType - dependency target
      See Also:
    • tryGeneratingSourceJar

      public void tryGeneratingSourceJar(Boolean tryGeneratingSourceJar)
      Description copied from interface: DefaultableBuilder
      If the cloned dependency doesn't have a task that is going to make a source jar, the plugin can try to generate one
      Specified by:
      tryGeneratingSourceJar in interface DefaultableBuilder
      Parameters:
      tryGeneratingSourceJar - if it should try
    • tryGeneratingJavaDocJar

      public void tryGeneratingJavaDocJar(Boolean tryGeneratingJavaDocJar)
      Description copied from interface: DefaultableBuilder
      If the cloned dependency doesn't have a task that is going to make a java doc jar, the plugin can try to generate one
      Specified by:
      tryGeneratingJavaDocJar in interface DefaultableBuilder
      Parameters:
      tryGeneratingJavaDocJar - if it should try
    • enableIdeSupport

      public void enableIdeSupport(Boolean enableIdeSupport)
      Description copied from interface: DefaultableBuilder
      By enabling this the plugin will register the source sets, configurations, its dependencies to your project.

      Disabled by default

      Specified by:
      enableIdeSupport in interface DefaultableBuilder
      Parameters:
      enableIdeSupport - if it should enable ide support
    • registerDependencyRepositoryToProject

      public void registerDependencyRepositoryToProject(Boolean registerDependencyRepositoryToProject)
      Description copied from interface: DefaultableBuilder
      If a repository should be added for the build dependency, this will not do anything for the Jar dependency type
      Specified by:
      registerDependencyRepositoryToProject in interface DefaultableBuilder
      Parameters:
      registerDependencyRepositoryToProject - if it should register the dependency
      See Also:
    • generateGradleTasks

      public void generateGradleTasks(Boolean generateGradleTasks)
      Description copied from interface: DefaultableBuilder
      Custom tasks can be generated for this dependency
      Specified by:
      generateGradleTasks in interface DefaultableBuilder
      Parameters:
      generateGradleTasks - if it should create custom tasks
    • buildLauncher

      public void buildLauncher(groovy.lang.Closure launcher)
      Specified by:
      buildLauncher in interface DefaultableBuilder
      See Also: