From d23e138d4911456cc3500eb88cb869bc007fedef Mon Sep 17 00:00:00 2001 From: Peter Lamar Date: Mon, 2 Nov 2020 10:13:05 -0500 Subject: [PATCH] [DOCS] Fix local build directory in README.asciidoc (#64408) Co-authored-by: Elastic Machine --- README.asciidoc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index e91e46df961c..9075994e0ed6 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -192,9 +192,23 @@ We have just covered a very small portion of what Elasticsearch is all about. Fo Elasticsearch uses https://gradle.org[Gradle] for its build system. -In order to create a distribution, simply run the `./gradlew assemble` command in the cloned directory. +For a local distribution, you can run: +---- +./gradlew localDistro +---- +which will build the appropriate distribution for the current platform as well as prints the output location -The distribution for each project will be created under the `build/distributions` directory in that project. +In order to create a distribution: +---- +./gradlew assemble +---- +To build the distribution for a specific platform, run the related command: +---- +./gradlew :distribution:archives:linux-tar:assemble +./gradlew :distribution:archives:darwin-tar:assemble +./gradlew :distribution:archives:windows-zip:assemble +---- +Finished distributions are output to `distributions/archives`. See the xref:TESTING.asciidoc[TESTING] for more information about running the Elasticsearch test suite.