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
-
Field Summary
Fields inherited from class io.github.srdjanv.localgitdependency.config.impl.defaultable.DefaultableConfigFields
dependencyType, enableIdeSupport, generateGradleTasks, keepGitUpdated, keepInitScriptUpdated, registerDependencyRepositoryToProject, tryGeneratingJavaDocJar, tryGeneratingSourceJar -
Constructor Summary
Constructors -
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 keepInitScriptUpdated) 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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keepGitUpdated
Description copied from interface:DefaultableBuilderThis will try to keep the gir repo of the dependency updated- Specified by:
keepGitUpdatedin interfaceDefaultableBuilder- Parameters:
keepGitUpdated- True if the plugin should update the git repo if the target commit changes
-
keepInitScriptUpdated
Description copied from interface:DefaultableBuilderIf set to false the generated dependencyInitScript will never be updated of fixed if changes are detected- Specified by:
keepInitScriptUpdatedin interfaceDefaultableBuilder- Parameters:
keepInitScriptUpdated- If it should stay updated
-
dependencyType
Description copied from interface:DefaultableBuilderHow the dependency is going to be added to the project- Specified by:
dependencyTypein interfaceDefaultableBuilder- Parameters:
dependencyType- dependency target- See Also:
-
tryGeneratingSourceJar
Description copied from interface:DefaultableBuilderIf 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:
tryGeneratingSourceJarin interfaceDefaultableBuilder- Parameters:
tryGeneratingSourceJar- if it should try
-
tryGeneratingJavaDocJar
Description copied from interface:DefaultableBuilderIf 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:
tryGeneratingJavaDocJarin interfaceDefaultableBuilder- Parameters:
tryGeneratingJavaDocJar- if it should try
-
enableIdeSupport
Description copied from interface:DefaultableBuilderBy enabling this the plugin will register the source sets, configurations, its dependencies to your project.Disabled by default
- Specified by:
enableIdeSupportin interfaceDefaultableBuilder- Parameters:
enableIdeSupport- if it should enable ide support
-
registerDependencyRepositoryToProject
Description copied from interface:DefaultableBuilderIf a repository should be added for the build dependency, this will not do anything for the Jar dependency type- Specified by:
registerDependencyRepositoryToProjectin interfaceDefaultableBuilder- Parameters:
registerDependencyRepositoryToProject- if it should register the dependency- See Also:
-
Dependency.TypeRepositoryHandler
-
generateGradleTasks
Description copied from interface:DefaultableBuilderCustom tasks can be generated for this dependency- Specified by:
generateGradleTasksin interfaceDefaultableBuilder- Parameters:
generateGradleTasks- if it should create custom tasks
-
buildLauncher
public void buildLauncher(groovy.lang.Closure launcher) - Specified by:
buildLauncherin interfaceDefaultableBuilder- See Also:
-