You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jannis Achstetter (JIRA)" <ji...@apache.org> on 2016/10/28 09:11:58 UTC

[jira] [Updated] (CB-12078) Project setup behind proxy no longer possible with android@6.0.0

     [ https://issues.apache.org/jira/browse/CB-12078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jannis Achstetter updated CB-12078:
-----------------------------------
    Description: 
We are running cordova behind a forced corporate proxy server. Therefore, the environment variables http_proxy and https_proxy are set accordingly. Unfortunately when gradle tries to download maven dependencies, these env settings are ignored (npm works fine though). To allow gradle to fetch the deps via the proxy, we created a plugin that adds a "gradle.properties" file to the platforms/android folder containing the proxy configuration (build-time plugin only, no influence on runtime behaviour).
With cordova-android@<6.0.0, this procedure was okay. We added the platform, added the proxy-config-plugin and built the app, which made gradle download the deps via the proxy.
Since android-gradle@6.0.0, the proxy-config-plugin cannot be added to the project since it triggers a "clean" which fails due to gradle beeing unable to fetch the dependencies (since the proxy config is missing).

Is it possible to (temporarily) disable the "clean"-step when adding plugins? Alternatively: Is there another/better way to configure a proxy for gradle?

Related:
https://issues.apache.org/jira/browse/CB-11964
https://github.com/apache/cordova-android/pull/339

Thanks for developing the amazing cordova!

  was:
We are running cordova behind a forced corporate proxy server. Therefore, the environment variables http_proxy and https_proxy are set accordingly. Unfortunately when gradle tries to download maven dependencies, these are ignored (npm works fine though). To allow gradle to fetch the deps via the proxy, we created a plugin that adds a "gradle.properties" file to the platforms/android folder containing the proxy configuration (build-time plugin only, no influence on runtime behaviour).
With cordova-android@<6.0.0, this procedure was okay. We added the platform, added the proxy-config-plugin and built the app, which made gradle download the deps via the proxy.
Since android-gradle@6.0.0, the proxy-config-plugin cannot be added to the project since it triggers a "clean" which fails due to gradle beeing unable to fetch the dependencies (since the proxy config is missing).

Is it possible to (temporarily) disable the "clean"-step when adding plugins? Alternatively: Is there another/better way to configure a proxy for gradle?

Related:
https://issues.apache.org/jira/browse/CB-11964
https://github.com/apache/cordova-android/pull/339

Thanks for developing the amazing cordova!


> Project setup behind proxy no longer possible with android@6.0.0
> ----------------------------------------------------------------
>
>                 Key: CB-12078
>                 URL: https://issues.apache.org/jira/browse/CB-12078
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Jannis Achstetter
>              Labels: proxy
>
> We are running cordova behind a forced corporate proxy server. Therefore, the environment variables http_proxy and https_proxy are set accordingly. Unfortunately when gradle tries to download maven dependencies, these env settings are ignored (npm works fine though). To allow gradle to fetch the deps via the proxy, we created a plugin that adds a "gradle.properties" file to the platforms/android folder containing the proxy configuration (build-time plugin only, no influence on runtime behaviour).
> With cordova-android@<6.0.0, this procedure was okay. We added the platform, added the proxy-config-plugin and built the app, which made gradle download the deps via the proxy.
> Since android-gradle@6.0.0, the proxy-config-plugin cannot be added to the project since it triggers a "clean" which fails due to gradle beeing unable to fetch the dependencies (since the proxy config is missing).
> Is it possible to (temporarily) disable the "clean"-step when adding plugins? Alternatively: Is there another/better way to configure a proxy for gradle?
> Related:
> https://issues.apache.org/jira/browse/CB-11964
> https://github.com/apache/cordova-android/pull/339
> Thanks for developing the amazing cordova!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org