Interface CommonBuilder
- All Known Subinterfaces:
DependencyBuilder,GlobalBuilder
- All Known Implementing Classes:
CommonPropertyBuilder,DependencyProperty.Builder,GlobalProperty.Builder
public interface CommonBuilder
-
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
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
-
keepDependencyInitScriptUpdated
If set to false the generated dependencyInitScript will never be updated of fixed if changes are detected- Parameters:
keepDependencyInitScriptUpdated- If it should stay updated
-
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
-
gitDir
Same as the above, but takes a string- Parameters:
dir- directory target
-
javaHomeDir
Some project need a specific java version to be build, specify the path of the JDK- Parameters:
javaHomeDir- Path to the JDK
-
javaHomeDir
Same as the above, but takes a string- Parameters:
javaHomeDir- 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
-
persistentDir
Same as the above, but takes a string- Parameters:
persistentDir- directory target
-
mavenDir
Some Dependency types will publish the artifact to local maven repo.- Parameters:
mavenDir- directory target- See Also:
-
mavenDir
Same as the above, but takes a string- Parameters:
mavenDir- directory target
-
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
-
gradleDaemonMaxIdleTime
For how long should the gradle daemon used for dependency building idle. Use java's TimeUnit class for easy conversion- Parameters:
gradleDaemonMaxIdleTime- the amount of time in seconds- See Also:
-