Class PluginConfig.Builder
java.lang.Object
io.github.srdjanv.localgitdependency.config.impl.plugin.PluginConfigFields
io.github.srdjanv.localgitdependency.config.impl.plugin.PluginConfig.Builder
- All Implemented Interfaces:
PluginBuilder
- Enclosing class:
- PluginConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidautomaticCleanup(Boolean automaticCleanup) Cleanup removed dependencies.voiddefaultDir(Object defaultDir) This will set the directory for all the default folder.voidgenerateGradleTasks(Boolean generateGradleTasks) This will generate default tasksvoidThis will set the directory in which the dependency will be created, it will not set the folder.voidkeepInitScriptUpdated(Boolean keepInitScriptUpdated) If set to false the generated mainInitScript will never be updated of fixed if changes are detectedvoidSome Dependency types will publish the artifact to local maven repo.voidpersistentDir(Object persistentDir) This will set the directory in which the dependency data will be stored, it will not set the folder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keepInitScriptUpdated
Description copied from interface:PluginBuilderIf set to false the generated mainInitScript will never be updated of fixed if changes are detected- Specified by:
keepInitScriptUpdatedin interfacePluginBuilder- Parameters:
keepInitScriptUpdated- If it should stay updated
-
generateGradleTasks
Description copied from interface:PluginBuilderThis will generate default tasks- Specified by:
generateGradleTasksin interfacePluginBuilder- Parameters:
generateGradleTasks- if it should create custom tasks
-
automaticCleanup
Description copied from interface:PluginBuilderCleanup removed dependencies. It's enabled by default, but if you specify a custom global path you must explicitly enable it. This is done because the cleanupManager will delete everything under those directories that doesn't mach with a registered dependency- Specified by:
automaticCleanupin interfacePluginBuilder- Parameters:
automaticCleanup- if it should cleanup removed dependencies
-
defaultDir
Description copied from interface:PluginBuilderThis will set the directory for all the default folder. The default is localGitDependency- Specified by:
defaultDirin interfacePluginBuilder- Parameters:
defaultDir- directory target
-
gitDir
Description copied from interface:PluginBuilderThis 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- Specified by:
gitDirin interfacePluginBuilder- Parameters:
dir- directory target
-
persistentDir
Description copied from interface:PluginBuilderThis 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- Specified by:
persistentDirin interfacePluginBuilder- Parameters:
persistentDir- directory target
-
mavenDir
Description copied from interface:PluginBuilderSome Dependency types will publish the artifact to local maven repo.- Specified by:
mavenDirin interfacePluginBuilder- Parameters:
mavenDir- directory target- See Also:
-