Skip to content

[packages] Migrate Gradle files to Kotlin #176065

@stuartmorgan-g

Description

@stuartmorgan-g

Flutter is increasingly moving to Kotlin rather than Groovy for gradle files; the app template has already switched, and #161703 tracks changing the plugin template.

For all the reasons this is a good idea in flutter/flutter and the templates (better safety, reducing languages we all deal with, better matching standard examples in Android documentation, etc.) it would be good to migrate our existing files in flutter/packages as well.

Per discussion with @reidbaker, we should follow the advice in https://developer.android.com/build/migrate-to-kotlin-dsl to start by standardizing our Groovy files on the more Kotlin-compatible versions of syntax, with things like using = for property assignment and (...) for method calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.packageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions