Interface DependencyBuilder
- All Superinterfaces:
DefaultableBuilder
- All Known Implementing Classes:
DependencyConfig.Builder
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbuildLauncher(groovy.lang.Closure launcher) voidvoidconfiguration(groovy.lang.Closure... configurations) voidconfiguration(String configuration) To what configuration to add all the generated jarsvoidThis will set the directory in which the dependency will be created, it will not set the folder.voidmapSourceSets(groovy.lang.Closure... mappings) voidSome Dependency types will publish the artifact to local maven repo.voidSets the name of the dependency, it will also be used as the directory namevoidpersistentDir(Object persistentDir) This will set the directory in which the dependency data will be stored, it will not set the folder.voidsubConfiguration(groovy.lang.Closure... configurations) voidMethods inherited from interface io.github.srdjanv.localgitdependency.config.dependency.defaultable.DefaultableBuilder
dependencyType, enableIdeSupport, generateGradleTasks, keepGitUpdated, keepInitScriptUpdated, registerDependencyRepositoryToProject, tryGeneratingJavaDocJar, tryGeneratingSourceJar
-
Method Details
-
buildLauncher
void buildLauncher(@DelegatesTo(value=LauncherBuilder.class,strategy=1) groovy.lang.Closure launcher) - Specified by:
buildLauncherin interfaceDefaultableBuilder- See Also:
-
configuration
To what configuration to add all the generated jarspreferably 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
Sets the name of the dependency, it will also be used as the directory name- Parameters:
name- Dependency name
-
commit
-
branch
-
tag
-
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:
dir- directory target
-
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
Some Dependency types will publish the artifact to local maven repo.- Parameters:
mavenDir- directory target- See Also:
-