Skip to content

Conversation

@PaulAllanSturm
Copy link
Collaborator

@PaulAllanSturm PaulAllanSturm commented Dec 3, 2025

Gradle is deprecating Groovy in favor of Kotlin for its .gradle config files. So here we convert the *.gradle files into .gradle.kts files with the Kotlin DSL. Also Java is upgraded from Java 11 to Java 17.

@PaulAllanSturm PaulAllanSturm self-assigned this Dec 3, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates Android Gradle configuration files from Groovy to Kotlin DSL and upgrades Java from version 11 to 17. The migration aligns with Gradle's deprecation of Groovy in favor of Kotlin for build configurations.

Key Changes:

  • Converted all .gradle files to .gradle.kts with Kotlin DSL syntax
  • Upgraded Java version from 11 to 17 across compilation and runtime targets
  • Modernized version code/name retrieval to use Flutter's built-in properties instead of manual parsing

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

File Description
android/settings.gradle.kts Converted to Kotlin DSL, simplified Flutter SDK path resolution, and updated plugin configuration
android/build.gradle.kts Converted to Kotlin DSL with modernized build directory configuration using layout API
android/app/build.gradle.kts Converted to Kotlin DSL, upgraded Java 11→17, and streamlined configuration using Flutter plugin properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PaulAllanSturm PaulAllanSturm merged commit 3e1cd51 into v.next Dec 5, 2025
1 check passed
@PaulAllanSturm PaulAllanSturm deleted the PaulAllanSturm/gradleKts branch December 5, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants