flutter/packages/flutter_tools/lib/src/android
Reid Baker 2723266466
i123643 print java version gradle (#123644)
#123643
- Add task to projects evaluated by flutter.gradle that will print the
java version.
- Add integration test for the existence of javaVersion and the expected
format.
- Add gradle util to get the gradlew version for a specific platform
(gradlew everywhere but windows).

Why does this code need to exist? 
Figuring out what version of java is used by flutter/gradle is done in a
few different ways that are not always aligned.
See this issue https://github.com/flutter/flutter/issues/122609 ,
this issue https://github.com/flutter/flutter/issues/121501 this feature
request https://github.com/flutter/flutter/issues/106416

As examples of why assuming the java version is dangerous. 
This task is code flutter can build upon and is the version gradle is
using to build no matter how it is configured.



## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] All existing and new tests are passing.

---------

Co-authored-by: Mitchell Goodwin <58190796+MitchellGoodwin@users.noreply.github.com>
Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
Co-authored-by: Victoria Ashworth <vashworth@google.com>
Co-authored-by: Christopher Fujino <christopherfujino@gmail.com>
Co-authored-by: Jackson Gardner <jacksongardner@google.com>
Co-authored-by: Rydmike <m.rydstrom@gmail.com>
Co-authored-by: keyonghan <54558023+keyonghan@users.noreply.github.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Ben Konyi <bkonyi@google.com>
Co-authored-by: engine-flutter-autoroll <engine-flutter-autoroll@skia.org>
Co-authored-by: hellohuanlin <41930132+hellohuanlin@users.noreply.github.com>
Co-authored-by: Danny Tuppeny <danny@tuppeny.com>
Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Kate Lovett <katelovett@google.com>
Co-authored-by: Michael Goderbauer <goderbauer@google.com>
Co-authored-by: Elias Yishak <42216813+eliasyishak@users.noreply.github.com>
Co-authored-by: Christopher Fujino <fujino@google.com>
2023-04-13 18:13:58 -04:00
..
migrations Fix Gradle warning in a freshly flutter createed Android project (#122290) 2023-03-21 23:41:49 +00:00
adb.dart Migrate flutter_tool tool helper files to null safety (#78845) 2021-03-23 10:02:59 -07:00
android_builder.dart Create configOnly flag for android (#121904) 2023-03-08 19:46:52 +00:00
android_console.dart Migrate android_console to null safety (#78923) 2021-03-24 15:18:00 -07:00
android_device_discovery.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
android_device.dart [Impeller] Plumb through the impeller-force-gl flag. (#123828) 2023-03-31 15:13:10 +00:00
android_emulator.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
android_sdk.dart Normalize Java SDK (JDK) location logic across the tool (#124233) 2023-04-05 20:36:50 +00:00
android_studio_validator.dart [tools]Build IPA validation UI Polish (#116744) 2022-12-15 14:43:32 -08:00
android_studio.dart Normalize Java SDK (JDK) location logic across the tool (#124233) 2023-04-05 20:36:50 +00:00
android_workflow.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
android.dart Migrate flutter_tool tool helper files to null safety (#78845) 2021-03-23 10:02:59 -07:00
application_package.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
build_validation.dart Migrate fingerprint to null safety (#79587) 2021-04-01 18:29:51 -07:00
deferred_components_gen_snapshot_validator.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
deferred_components_prebuild_validator.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
deferred_components_validator.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
gradle_errors.dart Update re-thrown error for incompatible Java/Gradle versions to include migration guide (#124327) 2023-04-12 22:15:07 +00:00
gradle_utils.dart i123643 print java version gradle (#123644) 2023-04-13 18:13:58 -04:00
gradle.dart Fix Gradle warning in a freshly flutter createed Android project (#122290) 2023-03-21 23:41:49 +00:00
multidex.dart [flutter_tools] Catch more general XmlException rather than XmlParserException (#107574) 2022-07-13 22:38:07 +00:00