# Can the gradle wrapper function over https?

**URL:** <https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801>\
**Category:** Old Forum Archive\
**Created:** [October 19, 2012, 11:30am UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801 "2012-10-19T11:30:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_deandrea](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@eric\_deandrea](https://discuss.gradle.org/u/eric_deandrea)\
**Post date:** [October 19, 2012, 11:30am UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/1 "2012-10-19T11:30:00Z")

</div>

Will the gradle wrapper work if I have a gradle-wrapper.properties file with a distributionUrl that points to a distribution that is hosted on https instead of http?

---

<div class="post-metadata">

**Author:** ![Adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Adrian](https://discuss.gradle.org/u/Adrian)\
**Post date:** [October 19, 2012, 12:03pm UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/2 "2012-10-19T12:03:00Z")

</div>

My Gradle binary distribution isn’t on HTTPS, but my artifact repository is, and I think the configuration would be the same for both. I ended up importing my self-signed cert into a Java keystore called gradle.certs and adding the following to the gradlew/gradlew.bat scripts:

gradlew: -Djavax.net.ssl.trustStore=${APP\_HOME}/gradle.certs -Djavax.net.ssl.trustStorePassword=KEYSTORE\_PASSWORD

gradlew.bat: “-Djavax.net.ssl.trustStore=%APP\_HOME%\gradle.certs” “-Djavax.net.ssl.trustStorePassword=changeit”

Up through Gradle 1.1, I didn’t need to specify the keystore password, but 1.2 bombs without it. I posted about it at [http://forums.gradle.org/gradle/topics/upgrade\_to\_1\_2\_breaks\_keystore\_was\_tampered\_with](http://forums.gradle.org/gradle/topics/upgrade_to_1_2_breaks_keystore_was_tampered_with) , but I never got a response ☹

---

<div class="post-metadata">

**Author:** ![eric\_deandrea](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@eric\_deandrea](https://discuss.gradle.org/u/eric_deandrea)\
**Post date:** [October 19, 2012, 12:04pm UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/3 "2012-10-19T12:04:00Z")

</div>

Thanks for the reply.

We aren’t using an artifact repository (maven or otherwise) - we have a solution in place which, when gradle fires up, all of the dependencies are already there on the filesystem local to the project.

I really need to know if the wrapper supports this, not just the artifact repositories.

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [October 21, 2012, 5:37am UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/4 "2012-10-21T05:37:00Z")

</div>

I’m not aware of any specific support. Have you tried to edit the wrapper scripts and pass along the usual system properties?

---

<div class="post-metadata">

**Author:** ![eric\_deandrea](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@eric\_deandrea](https://discuss.gradle.org/u/eric_deandrea)\
**Post date:** [October 22, 2012, 11:35am UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/5 "2012-10-22T11:35:00Z")

</div>

I haven’t tried to actually see if it works over https - I thought that before I went through the trouble of setting up/finding an internal https server that I would pose the question.

---

<div class="post-metadata">

**Author:** ![abunetta](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/abunetta/32/221_2.png) [@abunetta](https://discuss.gradle.org/u/abunetta)\
**Post date:** [February 19, 2014, 6:06am UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/6 "2014-02-19T06:06:00Z")

</div>

I’ve found that Gradle wrapper in versions 1.1 and 1.5 won’t follow a redirection from http to https.

But right now the https is not available.

Eric, I was wondering, did you find that wrapper is able to work against https?

Thanks, David

---

<div class="post-metadata">

**Author:** ![eric\_deandrea](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@eric\_deandrea](https://discuss.gradle.org/u/eric_deandrea)\
**Post date:** [February 19, 2014, 12:13pm UTC](https://discuss.gradle.org/t/can-the-gradle-wrapper-function-over-https/6801/7 "2014-02-19T12:13:00Z")

</div>

Hi David,

We are not using https. All of our communication is over http, since our gradle repository is hosted internally.
