From 3ed09e39630a5a31d3f15ea306b17c2860b2823d Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Tue, 6 Nov 2018 17:22:50 -0800 Subject: [PATCH] Docs: Update CONTRIBUTING.md with shortcut command for assembling only the tar distribution (#35276) * Add --parallel flag. --- CONTRIBUTING.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b77d53be2dc86..2e5f6685ecf9f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -196,11 +196,26 @@ the settings window and/or restart IntelliJ to see your changes take effect. ### Creating A Distribution -To create a distribution from the source, simply run: +Run all build commands from within the root directory: ```sh cd elasticsearch/ -./gradlew assemble +``` + +To build a tar distribution, run this command: + +```sh +./gradlew -p distribution/archives/tar assemble --parallel +``` + +You will find the distribution under: +`./distribution/archives/tar/build/distributions/` + +To create all build artifacts (e.g., plugins and Javadocs) as well as +distributions in all formats, run this command: + +```sh +./gradlew assemble --parallel ``` The package distributions (Debian and RPM) can be found under: @@ -209,7 +224,6 @@ The package distributions (Debian and RPM) can be found under: The archive distributions (tar and zip) can be found under: `./distribution/archives/(tar|zip)/build/distributions/` - ### Running The Full Test Suite Before submitting your changes, run the test suite to make sure that nothing is broken, with: