Migrate Gradle to Kotlin#3684
Open
duanemay wants to merge 5 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the project’s Gradle build configuration from Groovy DSL (*.gradle) to Kotlin DSL (*.gradle.kts), while keeping module structure and key build tasks (WAR packaging, docs generation, unit/integration test wiring) aligned with the existing build behavior.
Changes:
- Replaced Groovy build scripts with Kotlin DSL equivalents across root project and subprojects.
- Moved Gradle plugin definitions to the version catalog’s
[plugins]section and adoptedalias(libs.plugins.*)usage in build scripts. - Refactored/ported various task configurations (test logging, docs generation, boot image settings, integration test startup/shutdown, etc.) into Kotlin DSL.
Reviewed changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| build.gradle.kts | New root Kotlin DSL build with shared repositories, dependency management, test logging/config, and utility tasks. |
| build.gradle | Removed legacy root Groovy DSL build script. |
| settings.gradle.kts | New Kotlin DSL settings including project includes and directory mappings. |
| settings.gradle | Removed legacy Groovy DSL settings script. |
| gradle/libs.versions.toml | Removed unused catalog entries and introduced [plugins] definitions for plugin aliases. |
| uaa/build.gradle.kts | New Kotlin DSL build for UAA module including WAR/BootWar setup, docs tasks, boot image config, and integration test lifecycle. |
| uaa/build.gradle | Removed legacy Groovy DSL build script for UAA. |
| server/build.gradle.kts | Updated server module build script to Kotlin DSL plugin block + dependency/task syntax updates. |
| model/build.gradle.kts | New Kotlin DSL build for model module including test-jar artifact publication and resource filtering. |
| model/build.gradle | Removed legacy Groovy DSL build script for model module. |
| model/build_properties.gradle.kts | New Kotlin DSL applied script to generate git/build properties during resource processing. |
| model/build_properties.gradle | Removed legacy Groovy applied script for build/git properties. |
| metrics-data/build.gradle.kts | New Kotlin DSL build for metrics-data module including resource filtering and test deps. |
| metrics-data/build.gradle | Removed legacy Groovy DSL build script for metrics-data module. |
| statsd/build.gradle.kts | New Kotlin DSL build for statsd WAR module (dependencies, test exclusions, disabled integrationTest/bootRun). |
| statsd/build.gradle | Removed legacy Groovy DSL build script for statsd module. |
| statsd-lib/build.gradle.kts | New Kotlin DSL build for statsd-lib module including test deps and integrationTest filtering. |
| statsd-lib/build.gradle | Removed legacy Groovy DSL build script for statsd-lib module. |
Comment on lines
+268
to
+269
| logger.lifecycle("Killing UAA before auto-start") | ||
| rootProject.tasks.named("killUaa").get().actions.forEach { it.execute(rootProject.tasks.named("killUaa").get()) } |
Comment on lines
+305
to
+307
| logger.lifecycle("Killing UAA after failed auto-start") | ||
| rootProject.tasks.named("killUaa").get().actions.forEach { it.execute(rootProject.tasks.named("killUaa").get()) } | ||
| throw GradleException("UAA failed to start within $maxWaitSeconds seconds. Check ${bootLogFile.absolutePath}") |
Comment on lines
+315
to
+317
| logger.lifecycle("Stopping UAA application...") | ||
| rootProject.tasks.named("killUaa").get().actions.forEach { it.execute(rootProject.tasks.named("killUaa").get()) } | ||
| rootProject.file("build/boot.pid").delete() |
strehle
approved these changes
Jun 5, 2026
Member
strehle
left a comment
There was a problem hiding this comment.
beside copilot comments ok for me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Expected Benefits
Developer Experience
Build Performance
Maintainability
Team Productivity
The conversion will modernize the build system while maintaining all existing functionality and improving the development experience for the team.