Class CommonPropertyBuilder
java.lang.Object
io.github.srdjanv.localgitdependency.property.impl.CommonPropertyFields
io.github.srdjanv.localgitdependency.property.impl.CommonPropertyBuilder
- All Implemented Interfaces:
CommonBuilder
- Direct Known Subclasses:
DependencyProperty.Builder,GlobalProperty.Builder
Base property's used for dependency and global configuration.
A new dependency will inherit properties from the global configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddependencyType(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 dependencyvoidThis will set the directory in which the dependency will be created, it will not set the folder.voidSame as the above, but takes a stringvoidgradleDaemonMaxIdleTime(Integer gradleDaemonMaxIdleTime) For how long should the gradle daemon used for dependency building idle.voidjavaHomeDir(File javaHomeDir) Some project need a specific java version to be build, specify the path of the JDKvoidjavaHomeDir(String javaHomeDir) Same as the above, but takes a stringvoidkeepDependencyInitScriptUpdated(Boolean keepDependencyInitScriptUpdated) If set to false the generated dependencyInitScript will never be updated of fixed if changes are detectedvoidkeepGitUpdated(Boolean keepGitUpdated) This will try to keep the gir repo of the dependency updatedvoidSome Dependency types will publish the artifact to local maven repo.voidSame as the above, but takes a stringvoidpersistentDir(File persistentDir) This will set the directory in which the dependency data will be stored, it will not set the folder.voidpersistentDir(String persistentDir) Same as the above, but takes a stringvoidregisterDependencyRepositoryToProject(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
Description copied from interface:CommonBuilderThis will try to keep the gir repo of the dependency updated- Specified by:
keepGitUpdatedin interfaceCommonBuilder- Parameters:
keepGitUpdated- True if the plugin should update the git repo if the target commit changes
-
keepDependencyInitScriptUpdated
Description copied from interface:CommonBuilderIf set to false the generated dependencyInitScript will never be updated of fixed if changes are detected- Specified by:
keepDependencyInitScriptUpdatedin interfaceCommonBuilder- Parameters:
keepDependencyInitScriptUpdated- If it should stay updated
-
gitDir
Description copied from interface:CommonBuilderThis 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 interfaceCommonBuilder- Parameters:
dir- directory target
-
gitDir
Description copied from interface:CommonBuilderSame as the above, but takes a string- Specified by:
gitDirin interfaceCommonBuilder- Parameters:
dir- directory target
-
javaHomeDir
Description copied from interface:CommonBuilderSome project need a specific java version to be build, specify the path of the JDK- Specified by:
javaHomeDirin interfaceCommonBuilder- Parameters:
javaHomeDir- Path to the JDK
-
javaHomeDir
Description copied from interface:CommonBuilderSame as the above, but takes a string- Specified by:
javaHomeDirin interfaceCommonBuilder- Parameters:
javaHomeDir- directory target
-
persistentDir
Description copied from interface:CommonBuilderThis 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 interfaceCommonBuilder- Parameters:
persistentDir- directory target
-
persistentDir
Description copied from interface:CommonBuilderSame as the above, but takes a string- Specified by:
persistentDirin interfaceCommonBuilder- Parameters:
persistentDir- directory target
-
mavenDir
Description copied from interface:CommonBuilderSome Dependency types will publish the artifact to local maven repo.- Specified by:
mavenDirin interfaceCommonBuilder- Parameters:
mavenDir- directory target- See Also:
-
mavenDir
Description copied from interface:CommonBuilderSame as the above, but takes a string- Specified by:
mavenDirin interfaceCommonBuilder- Parameters:
mavenDir- directory target
-
dependencyType
Description copied from interface:CommonBuilderHow the dependency is going to be added to the project- Specified by:
dependencyTypein interfaceCommonBuilder- Parameters:
dependencyType- dependency target- See Also:
-
tryGeneratingSourceJar
Description copied from interface:CommonBuilderIf 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 interfaceCommonBuilder- Parameters:
tryGeneratingSourceJar- if it should try
-
tryGeneratingJavaDocJar
Description copied from interface:CommonBuilderIf 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 interfaceCommonBuilder- Parameters:
tryGeneratingJavaDocJar- if it should try
-
enableIdeSupport
Description copied from interface:CommonBuilderBy enabling this the plugin will register the source sets, configurations, its dependencies to your project.Disabled by default
- Specified by:
enableIdeSupportin interfaceCommonBuilder- Parameters:
enableIdeSupport- if it should enable ide support
-
registerDependencyRepositoryToProject
Description copied from interface:CommonBuilderIf a repository should be added for the build dependency, this will not do anything for the Jar dependency type- Specified by:
registerDependencyRepositoryToProjectin interfaceCommonBuilder- Parameters:
registerDependencyRepositoryToProject- if it should register the dependency- See Also:
-
Dependency.TypeRepositoryHandler
-
generateGradleTasks
Description copied from interface:CommonBuilderCustom tasks can be generated for this dependency- Specified by:
generateGradleTasksin interfaceCommonBuilder- Parameters:
generateGradleTasks- if it should create custom tasks
-
gradleDaemonMaxIdleTime
Description copied from interface:CommonBuilderFor how long should the gradle daemon used for dependency building idle. Use java's TimeUnit class for easy conversion- Specified by:
gradleDaemonMaxIdleTimein interfaceCommonBuilder- Parameters:
gradleDaemonMaxIdleTime- the amount of time in seconds- See Also:
-