vm-tests: build a sample android app offline in the android-dev archetype
This commit is contained in:
parent
f7f8c208b3
commit
36a8b4fa1f
1 changed files with 235 additions and 10 deletions
11
nix/vm-tests/android-dev-sample/offline.init.gradle
Normal file
11
nix/vm-tests/android-dev-sample/offline.init.gradle
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Build with the fetched dependencies as the only repository, so a build that
|
||||
// needs anything else fails instead of reaching for the network.
|
||||
beforeSettings { settings ->
|
||||
def repo = System.getenv('ANDROID_DEPS_REPO')
|
||||
settings.pluginManagement.repositories {
|
||||
maven { url = uri(repo) }
|
||||
}
|
||||
settings.dependencyResolutionManagement.repositories {
|
||||
maven { url = uri(repo) }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue