# How to skip downloading ml-cpp-8.2.0-SNAPSHOT.zip while using "./gradlew localDistro"

**URL:** <https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390>\
**Category:** Elasticsearch\
**Created:** [February 28, 2022, 9:21am UTC](https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390 "2022-02-28T09:21:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericsoul](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ericsoul](https://discuss.elastic.co/u/ericsoul)\
**Post date:** [February 28, 2022, 9:21am UTC](https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390/1 "2022-02-28T09:21:27Z")

</div>

Because of the network is not very stable, every time the "./gradlew localDistro" command reaches the downloading of ml-cpp-8.2.0-SNAPSHOT.zip,it will fail after long download before finish.  
I have downloaded the package from browser, then how to skip download it while compile it by gradle

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [February 28, 2022, 11:42pm UTC](https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390/2 "2022-02-28T23:42:15Z")

</div>

Try

```auto
./gradlew --offline localDistro

```

That used to work, but I haven't tried recently.

---

<div class="post-metadata">

**Author:** ![ericsoul](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ericsoul](https://discuss.elastic.co/u/ericsoul)\
**Post date:** [March 1, 2022, 12:59am UTC](https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390/3 "2022-03-01T00:59:03Z")

</div>

Thanks for your reply, It seems a way which I don't know.

I downloaded the package, but I don't know where to local the package for offline.  
And how about the other package which not downloaded yet if I use this command.

---

<div class="post-metadata">

**Author:** ![ericsoul](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ericsoul](https://discuss.elastic.co/u/ericsoul)\
**Post date:** [March 1, 2022, 2:26am UTC](https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390/4 "2022-03-01T02:26:43Z")

</div>

> <https://stackoverflow.com/questions/10834111/gradle-store-on-local-file-system>

This question has a answer to let us know the location " \* groupid + artifactid + version + **FILE\_SHA\_HASH\_VALUE** + FILE\_NAME"

---

<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:** [March 29, 2022, 2:26am UTC](https://discuss.elastic.co/t/how-to-skip-downloading-ml-cpp-8-2-0-snapshot-zip-while-using-gradlew-localdistro/298390/5 "2022-03-29T02:26:52Z")

</div>

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