JakeWharton / sdk-manager-plugin

DEPRECATED Gradle plugin which downloads and manages your Android SDK.
Apache License 2.0
1.41k stars 132 forks source link

Cannot get plugin to use Http instead of Https #81

Open barmonger opened 9 years ago

barmonger commented 9 years ago

Hi

The company I work for is using a firewall, with a self-signed certificate, which decrypts and reencrypts all https traffic between us and the internet, which (among other things) breaks the download of Android SDK updates via https.

I've tried setting the system property android.preferHttp to 'y' in gradle.properties (and in the Windows environment variables) but the sdk-manager-plugin tries to download via https anyway. I can read the system property by manually calling "println java.lang.System.getProperty('android.preferHttp')" in a Gradle task.

How do I supply the system properties to the sdk manager plugin so that it doesn't use https?

TIA

barmonger commented 9 years ago

It appears that when the the code was merged together (in https://github.com/JakeWharton/sdk-manager-plugin/pull/21) the part about the https property wasn't added (only the proxy part made it to master). Is it possible to have it re-added again?