[DON-2261] Migrate Gradle build scripts from Groovy to Kotlin DSL #2532
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request migrates the project's Gradle build scripts from Groovy (
.gradle) to Kotlin DSL (.gradle.kts), modernizing and standardizing the build configuration across the codebase. It also updates the bytecode target level configuration and ensures all relevant tasks and dependencies are referenced using the new Kotlin DSL files. No functional changes to the app or library code are introduced; the changes are focused on build infrastructure.The most important changes are:
Gradle Script Migration to Kotlin DSL:
android-configuration.gradle,android-configuration-check.gradle,app/build.gradle,app/screenshots.gradle) with equivalent Kotlin DSL scripts (android-configuration.gradle.kts,android-configuration-check.gradle.kts,app/build.gradle.kts,app/screenshots.gradle.kts). This includes updating allapply(from = ...)references in module build scripts to point to the new.ktsfiles. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Build Configuration Improvements:
tasks.register,configure, and explicit type declarations for tasks and extensions, improving maintainability and IDE support. [1] [2] [3]Compiler and Toolchain Consistency:
.idea/compiler.xmlto explicitly set the bytecode target level for relevant modules. [1] [2] [3]Dependency and Task Declaration Updates:
libsversion catalog andtasks.withTypefor compiler options and custom tasks. [1] [2] [3]Minor Cleanups:
Remember to include the following changes:
README.mdIf you are curious about how we review, please read through the code review guidelines