# Gradle assemble -Dbuild.snapshot=false

**URL:** https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823
**Category:** Elasticsearch
**Created:** [May 20, 2019, 1:19pm UTC](https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823 "2019-05-20T13:19:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![adeppa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adeppa/32/124594_2.png) [@adeppa](https://discuss.elastic.co/u/adeppa)
#### Post date: [May 20, 2019, 1:19pm UTC](https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823/1 "2019-05-20T13:19:57Z")

</div>

Hi Team I try to run above command from source code will getting error

Build file '/Users/adeppathondur/Desktop/Softwares/elastic\_source/elasticsearch/x-pack/plugin/core/build.gradle' line: 67

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

> Property license.key must be set for release build

please help me here

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [May 21, 2019, 6:50am UTC](https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823/2 "2019-05-21T06:50:29Z")

</div>

I don't think it's a good idea to assemble your own build with `-Dbuild.snapshot=false`. If it succeeded, it would look like a genuine Elasticsearch build but the version number would not correspond with the code that is running. What are you actually trying to achieve here?

---

<div class="post-metadata">

### Author: ![adeppa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adeppa/32/124594_2.png) [@adeppa](https://discuss.elastic.co/u/adeppa)
#### Post date: [May 21, 2019, 7:35am UTC](https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823/3 "2019-05-21T07:35:58Z")

</div>

Thanks for the response, actual problem here i want to install some plugins on custom source build using the command i.e " sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu" but getting error "ERROR: attempted to install release build of official plugin on snapshot build of Elasticsearch" so that i am going into build without SNAPSHOT keyword at every jar, it's can fix above mention issue, this solution found in forum so that tried, if have any idea for the above issue please let me know

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [May 21, 2019, 10:56am UTC](https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823/4 "2019-05-21T10:56:10Z")

</div>

I would recommend installing `-SNAPSHOT` builds of the plugins to match the `-SNAPSHOT` nature of your custom build.

---

<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: [June 18, 2019, 10:56am UTC](https://discuss.elastic.co/t/gradle-assemble-dbuild-snapshot-false/181823/5 "2019-06-18T10:56:19Z")

</div>

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