Bug 1254353 - Pre: Assemble app and tests when collecting dependencies. r=me
In the wild, the Robotium Maven dependency is not being fetched.
Let's see if this forces it to be downloaded.
MozReview-Commit-ID: 3Fhm4Aj40Jp
--- a/build.gradle
+++ b/build.gradle
@@ -122,22 +122,8 @@ idea {
if (!mozconfig.substs.MOZ_INSTALL_TRACKING) {
excludeDirs += file("${topsrcdir}/mobile/android/thirdparty/com/adjust")
}
}
}
task wrapper(type: Wrapper) {
}
-
-// From http://jdpgrailsdev.github.io/blog/2014/10/28/gradle_resolve_all_dependencies.html.
-task resolveDependencies {
- doLast {
- project.rootProject.allprojects.each { subProject ->
- subProject.buildscript.configurations.each { configuration ->
- configuration.resolve()
- }
- subProject.configurations.each { configuration ->
- configuration.resolve()
- }
- }
- }
-}
--- a/testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_gradle_dependencies.py
+++ b/testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_gradle_dependencies.py
@@ -1,11 +1,15 @@
config = {
'base_name': 'Android armv7 API 15+ Gradle dependencies %(branch)s',
'stage_platform': 'android-api-15-gradle-dependencies',
'build_type': 'api-15-opt',
'src_mozconfig': 'mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly',
'tooltool_manifest_src': 'mobile/android/config/tooltool-manifests/android-gradle-dependencies/releng.manifest',
'multi_locale_config_platform': 'android',
'postflight_build_mach_commands': [
- ['gradle', 'resolveDependencies'],
+ ['gradle',
+ 'assembleAutomationRelease',
+ 'assembleAutomationDebug',
+ 'assembleAutomationDebugAndroidTest',
+ ],
],
}
--- a/testing/taskcluster/tasks/branches/base_jobs.yml
+++ b/testing/taskcluster/tasks/branches/base_jobs.yml
@@ -360,8 +360,9 @@ tasks:
# Other misc lint related files.
- 'tools/lint/**'
android-api-15-gradle-dependencies:
task: tasks/builds/android_api_15_gradle_dependencies.yml
root: true
when:
file_patterns:
- 'testing/docker/android-gradle-build/**'
+ - '**/*.gradle'