# Building oss tar from source code Elasticsearch 7.10

**URL:** https://discuss.elastic.co/t/building-oss-tar-from-source-code-elasticsearch-7-10/291966
**Category:** Elasticsearch
**Created:** [December 15, 2021, 12:10pm UTC](https://discuss.elastic.co/t/building-oss-tar-from-source-code-elasticsearch-7-10/291966 "2021-12-15T12:10:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dhina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhina/32/68859_2.png) [@dhina](https://discuss.elastic.co/u/dhina)
#### Post date: [December 15, 2021, 12:10pm UTC](https://discuss.elastic.co/t/building-oss-tar-from-source-code-elasticsearch-7-10/291966/1 "2021-12-15T12:10:43Z")

</div>

Hi,

References

> [@Building OSS release version of Elastic Search 6.3.1](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041):
>
> Hi, I am new to Elastic Search, I am trying to build OSS release version of 6.3.1 from source code. I followed instructions mentioned in readme, downloaded the code from GIT and ran "gradlew assemble" command. Build is successful, but i see zip files created under "C:\ES\elasticsearch-6.3.1\distribution\archives\oss-zip\build\distributions" with name elasticsearch-oss-6.3.1-SNAPSHOT.zip. I am guessing SNAPSHOT in name indicates its developer build not release? Please help me how i can build O…

> [@How to get a free basic license.key for building?](https://discuss.elastic.co/t/how-to-get-a-free-basic-license-key-for-building/157693):
>
> Hi all: I want to create a elasticsearch release build by command: gradle assemble -Dbuild.snapshot=false But I get an error message like this: Property license.key must be set for release build I didn't find how to get the free basic license.key from: [https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions) And I want build the package instead of downloading package directly. If I just want create a release build based on a free basic license.key, how to get the free basic license.key? And how to use i…

Is there a way we could build the oss version of the Elasticsearch from source code.  
We have a requirement like, we have to build the Elasticsearch OSS from source code and use it instead of downloading it.

We would like to build with snapshot option false.

```auto
-Dbuild.snapshot=false

```

We get the below error.  
./gradlew :distribution:archives:oss-no-jdk-linux-tar:assemble -Dbuild.snapshot=false

FAILURE: Build failed with an exception.

- Where:  
Build file '/local/ES/elasticsearch/x-pack/plugin/core/build.gradle' line: 85

- What went wrong:  
A problem occurred evaluating project ':x-pack:plugin:core'.

> Property license.key must be set for release build

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org/)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 12, 2022, 12:10pm UTC](https://discuss.elastic.co/t/building-oss-tar-from-source-code-elasticsearch-7-10/291966/2 "2022-01-12T12:10:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
