@@ -376,12 +376,38 @@ targets:
376376          "CHANNEL": "master" 
377377        } 
378378
379+    - name : Linux_android android_build_all_packages_legacy master 
380+     #  When making this `bringup: false`, update the task above to
381+     #  use target_file: android_build_all_packages_jdk17.yaml and
382+     #  remove its 'dependencies' section.
383+     bringup : true  #  https://github.com/flutter/packages/pull/7099
384+     recipe : packages/packages 
385+     timeout : 30 
386+     properties :
387+       version_file : flutter_master.version 
388+       #  TODO(stuartmorgan): Once stable requires JDK 17, and the
389+       #  legacy project is updated accordingly, this entire target
390+       #  can be merged back into android_build_all_packages.
391+       #  This file only builds a *legacy* version of the project.
392+       target_file : android_build_all_packages_legacy.yaml 
393+       channel : master 
394+       #  The legacy project build requires an older JDK.
395+       dependencies : >- 
396+         [ 
397+           {"dependency": "open_jdk", "version": "version:11"} 
398+         ] 
399+        env_variables : >- 
400+         { 
401+           "CHANNEL": "master" 
402+         } 
403+ 
379404   - name : Linux_android android_build_all_packages stable 
380405    recipe : packages/packages 
381406    timeout : 30 
382407    properties :
383408      add_recipes_cq : " true" 
384409      version_file : flutter_stable.version 
410+       #  This builds both legacy, and "modern" projects.
385411      target_file : android_build_all_packages.yaml 
386412      channel : stable 
387413      #  The legacy project build requires an older JDK.
@@ -394,6 +420,28 @@ targets:
394420          "CHANNEL": "stable" 
395421        } 
396422
423+    - name : Linux_android android_build_all_packages_legacy stable 
424+     #  When making this `bringup: false`, update the task above to
425+     #  use target_file: android_build_all_packages_jdk17.yaml and
426+     #  remove its 'dependencies' section.
427+     bringup : true  #  https://github.com/flutter/packages/pull/7099
428+     recipe : packages/packages 
429+     timeout : 30 
430+     properties :
431+       version_file : flutter_stable.version 
432+       #  This file only builds a *legacy* version of the project.
433+       target_file : android_build_all_packages_legacy.yaml 
434+       channel : stable 
435+       #  The legacy project build requires an older JDK.
436+       dependencies : >- 
437+         [ 
438+           {"dependency": "open_jdk", "version": "version:11"} 
439+         ] 
440+        env_variables : >- 
441+         { 
442+           "CHANNEL": "stable" 
443+         } 
444+ 
397445   - name : Linux_android android_platform_tests_shard_1 master 
398446    recipe : packages/packages 
399447    timeout : 60 
0 commit comments