Package org.elasticsearch.gradle
Class ElasticsearchDistribution
java.lang.Object
org.elasticsearch.gradle.ElasticsearchDistribution
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.tasks.TaskDependencybooleanorg.gradle.api.file.ConfigurableFileCollectionbooleangetName()booleangetType()booleanInforms if the version is not tied to any Elasticsearch release and is a custom build.booleanisDocker()iterator()if not executed before, this freezes the distribution configuration and runs distribution finalizer logic.voidsetArchitecture(Architecture architecture) voidsetBundledJdk(Boolean bundledJdk) voidsetDetachedVersion(boolean detachedVersion) voidsetFailIfUnavailable(boolean failIfUnavailable) voidvoidsetPreferArchive(boolean preferArchive) voidFor simplicity only public distribution types are supported herevoidvoidsetVersion(String version) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
CURRENT_PLATFORM
-
-
Method Details
-
getName
-
getVersion
-
setVersion
-
isDetachedVersion
public boolean isDetachedVersion()Informs if the version is not tied to any Elasticsearch release and is a custom build. This is true when the distribution is not from HEAD but also not any known released version. In that case the detached source build needs to be prepared by `usedBwcDistributionFromRef(ref, version)`. -
setDetachedVersion
public void setDetachedVersion(boolean detachedVersion) -
getPlatform
-
setPlatform
-
getType
-
setType
-
setType
For simplicity only public distribution types are supported here -
getBundledJdk
public boolean getBundledJdk() -
isDocker
public boolean isDocker() -
setBundledJdk
-
getPreferArchive
public boolean getPreferArchive() -
setPreferArchive
public void setPreferArchive(boolean preferArchive) -
setArchitecture
-
getArchitecture
-
toString
-
maybeFreeze
if not executed before, this freezes the distribution configuration and runs distribution finalizer logic. -
getFilepath
-
getExtracted
public org.gradle.api.file.ConfigurableFileCollection getExtracted() -
getBuildDependencies
public org.gradle.api.tasks.TaskDependency getBuildDependencies()- Specified by:
getBuildDependenciesin interfaceorg.gradle.api.Buildable
-
iterator
-