Interface DependencyBuilder

All Superinterfaces:
DefaultableBuilder
All Known Implementing Classes:
DependencyConfig.Builder

public interface DependencyBuilder extends DefaultableBuilder
  • Method Details

    • buildLauncher

      void buildLauncher(@DelegatesTo(value=LauncherBuilder.class,strategy=1) groovy.lang.Closure launcher)
      Specified by:
      buildLauncher in interface DefaultableBuilder
      See Also:
    • configuration

      void configuration(String configuration)
      To what configuration to add all the generated jars

      preferably this should be a runtimeOnly configuration

      Parameters:
      configuration - Configuration name
      See Also:
      • ConfigurationContainer
    • configuration

      void configuration(@DelegatesTo(value=ConfigurationBuilder.class,strategy=1) groovy.lang.Closure... configurations)
      See Also:
    • subConfiguration

      void subConfiguration(@DelegatesTo(value=SubConfigurationBuilder.class,strategy=1) groovy.lang.Closure... configurations)
      See Also:
    • mapSourceSets

      void mapSourceSets(@DelegatesTo(value=SourceSetMapperBuilder.class,strategy=1) groovy.lang.Closure... mappings)
      See Also:
    • name

      void name(String name)
      Sets the name of the dependency, it will also be used as the directory name
      Parameters:
      name - Dependency name
    • commit

      void commit(String commit)
    • branch

      void branch(String branch)
    • tag

      void tag(String tag)
    • gitDir

      void gitDir(Object dir)
      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:
      dir - 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: