All Known Subinterfaces:
DependencyBuilder
All Known Implementing Classes:
DefaultableConfig.Builder, DependencyConfig.Builder

public interface DefaultableBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    buildLauncher(groovy.lang.Closure launcher)
     
    void
    How the dependency is going to be added to the project
    void
    enableIdeSupport(Boolean enableIdeSupport)
    By enabling this the plugin will register the source sets, configurations, its dependencies to your project.
    void
    generateGradleTasks(Boolean generateGradleTasks)
    Custom tasks can be generated for this dependency
    void
    keepGitUpdated(Boolean keepGitUpdated)
    This will try to keep the gir repo of the dependency updated
    void
    keepInitScriptUpdated(Boolean keepDependencyInitScriptUpdated)
    If set to false the generated dependencyInitScript will never be updated of fixed if changes are detected
    void
    registerDependencyRepositoryToProject(Boolean registerDependencyRepositoryToProject)
    If a repository should be added for the build dependency, this will not do anything for the Jar dependency type
    void
    tryGeneratingJavaDocJar(Boolean tryGeneratingJavaDocJar)
    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
    void
    tryGeneratingSourceJar(Boolean tryGeneratingSourceJar)
    If the cloned dependency doesn't have a task that is going to make a source jar, the plugin can try to generate one
  • Method Details

    • keepGitUpdated

      void keepGitUpdated(Boolean keepGitUpdated)
      This will try to keep the gir repo of the dependency updated
      Parameters:
      keepGitUpdated - True if the plugin should update the git repo if the target commit changes
    • keepInitScriptUpdated

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

      void dependencyType(Dependency.Type dependencyType)
      How the dependency is going to be added to the project
      Parameters:
      dependencyType - dependency target
      See Also:
    • tryGeneratingSourceJar

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

      void tryGeneratingJavaDocJar(Boolean tryGeneratingJavaDocJar)
      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
      Parameters:
      tryGeneratingJavaDocJar - if it should try
    • enableIdeSupport

      void enableIdeSupport(Boolean enableIdeSupport)
      By enabling this the plugin will register the source sets, configurations, its dependencies to your project.

      Disabled by default

      Parameters:
      enableIdeSupport - if it should enable ide support
    • registerDependencyRepositoryToProject

      void registerDependencyRepositoryToProject(Boolean registerDependencyRepositoryToProject)
      If a repository should be added for the build dependency, this will not do anything for the Jar dependency type
      Parameters:
      registerDependencyRepositoryToProject - if it should register the dependency
      See Also:
    • generateGradleTasks

      void generateGradleTasks(Boolean generateGradleTasks)
      Custom tasks can be generated for this dependency
      Parameters:
      generateGradleTasks - if it should create custom tasks
    • buildLauncher

      void buildLauncher(@DelegatesTo(value=DefaultableLauncherBuilder.class,strategy=1) groovy.lang.Closure launcher)
      See Also: