We are using AngularJS and Ionic for writing a mobile application supported both on IOS and Android.
When we do “ionic build android --release”, it creates a build.gradle file in both platforms/android directory and platforms/android/CordovaLib directory. Both of these files point to mavenCentral() to download artifacts directly from the maven central repo (http://repo1.maven.org/maven2).
We are trying to build our mobile apps as part of a Jenkins build behind company proxy and would like to have gradle reach out to our internal Maven nexus repository instead of reaching out to the central maven repository directly. Our internal Neux repository would then proxy everything to the maven central repository.
We cannot hand edit the build.gradle file as it is a generated file and so any custom changes made to it would be lost in the next build.
Do you know a solution or a workaround?
Thanks
Manlio