Interface DefaultableBuilder
- All Known Subinterfaces:
DependencyBuilder
- All Known Implementing Classes:
DefaultableConfig.Builder,DependencyConfig.Builder
public interface DefaultableBuilder
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuildLauncher(groovy.lang.Closure launcher) voiddependencyType(Dependency.Type dependencyType) How the dependency is going to be added to the projectvoidenableIdeSupport(Boolean enableIdeSupport) By enabling this the plugin will register the source sets, configurations, its dependencies to your project.voidgenerateGradleTasks(Boolean generateGradleTasks) Custom tasks can be generated for this dependencyvoidkeepGitUpdated(Boolean keepGitUpdated) This will try to keep the gir repo of the dependency updatedvoidkeepInitScriptUpdated(Boolean keepDependencyInitScriptUpdated) If set to false the generated dependencyInitScript will never be updated of fixed if changes are detectedvoidregisterDependencyRepositoryToProject(Boolean registerDependencyRepositoryToProject) If a repository should be added for the build dependency, this will not do anything for the Jar dependency typevoidtryGeneratingJavaDocJar(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 onevoidtryGeneratingSourceJar(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
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
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
How the dependency is going to be added to the project- Parameters:
dependencyType- dependency target- See Also:
-
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
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
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
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:
-
Dependency.TypeRepositoryHandler
-
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:
-