I have an android gradle assembly that is looking for dependencies on four different servers.
Now the assembly takes up to two minutes, because these dependencies are checked by each assembly. Perhaps this is because one of the repositories returns an error for most dependencies.
I have the following sources in a gradle file:
repositories {
maven { url 'http://jenkins.local:8081/nexus/content/groups/public/' }
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/'}
maven {url "https://repo.commonsware.com.s3.amazonaws.com"}
}
The first entry is a proxy server that should cache all artifacts after the first request. This is part of the dependency list:
compile 'com.android.support:support-v4:19. + '
compile 'com.squareup.picasso:picasso:2.2.+'
compile 'com.commonsware.cwac:merge:1.0.1'
compile files('libs/crittercism_v4_3_0_sdkonly.jar')
testCompile 'junit:junit:4.10'
testCompile 'org.robolectric:robolectric:2.3-SNAPSHOT'
testCompile 'com.squareup:fest-android:1.0.+'
testCompile 'org.mockito:mockito-all:1.9.5'
instrumentTestCompile 'junit:junit:4.10'
instrumentTestCompile 'org.robolectric:robolectric:2.3-SNAPSHOT'
instrumentTestCompile 'com.squareup:fest-android:1.0.+'
instrumentTestCompile 'org.mockito:mockito-all:1.9.5'
Now while gradle is working, I get the following output (snapshot again):
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https:
, , , ?