-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Show custom error message when Kotlin or Gradle bump is required #102421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show custom error message when Kotlin or Gradle bump is required #102421
Conversation
38d9505 to
d13e005
Compare
|
PTAL @GaryQian |
|
friendly ping @GaryQian |
GaryQian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
| '${globals.logger.terminal.warningMark} Your project needs to upgrade Gradle and the Android Gradle plugin.\n\n' | ||
| 'To fix this issue, replace the following content:\n' | ||
| '${gradleFile.path}:\n' | ||
| ' ${globals.terminal.color("- classpath 'com.android.tools.build:gradle:<current-version>'", TerminalColor.red)}\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Using <current-version> may mislead dev to search for specifically this string since it is presented as a +- diff. But i don't really see any obviously better way to display it.
|
@blasten is this one ready to merge? |
Shows custom error messages when a bump of Kotlin or Gradle is required.
Once the migration tool is available, we can tell folks to run it to find more mismatches.