Upgrade to Gradle 9.5.0; bump deps; tidy build configuration#2
Merged
Conversation
Build infrastructure cleanup driven by the new version-catalog parsing in
the Makefile.
Versions
- Gradle wrapper 9.4.1 -> 9.5.0
- Kotlin 2.3.20 -> 2.3.21
- Ktor 3.4.2 -> 3.4.3
- ben-manes versions plugin 0.53.0 -> 0.54.0
- Add `gradle` and `jvm` keys to libs.versions.toml so Makefile and
build.gradle.kts can both read them as a single source of truth.
build.gradle.kts
- Move `group` and `version` to gradle.properties.
- Replace magic strings with named vals (`mainClassName`, `fatJarName`,
`jvmVersion`, `buildFatJarTask`, `cleanTask`, `stageTask`,
`preReleaseSuffixes`).
- Pull JVM toolchain version from `libs.versions.jvm` instead of a
hardcoded `21`.
- Drop the project-level `repositories { mavenCentral() }` block; it now
lives centrally in settings.gradle.kts.
settings.gradle.kts
- Add `pluginManagement` (gradlePluginPortal + mavenCentral).
- Centralize project repositories under `dependencyResolutionManagement`
with `RepositoriesMode.FAIL_ON_PROJECT_REPOS` so subprojects can't
silently introduce their own repos.
gradle.properties
- Restore `group`/`version` (now the canonical home).
- Enable `org.gradle.configuration-cache=true`.
- Set `org.gradle.jvmargs` for larger heap, metaspace, and stack so
Kotlin compilation stops OOMing in CI/Docker builds.
.gitignore
- Add `.DS_Store`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Runs ./gradlew build -x test on every push to master and on every PR targeting master. JDK 21 (temurin), Gradle wrapper validated and cached via gradle/actions/setup-gradle. Concurrency-cancels superseded PR runs but lets master pushes finish. Read-only token permissions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Build infrastructure cleanup, driven by the version-catalog parsing the Makefile now relies on (PR #1).
Versions
gradleandjvmkeys togradle/libs.versions.tomlso the Makefile andbuild.gradle.ktsboth read them as a single source of truth.build.gradle.ktsgroupandversiontogradle.properties.mainClassName,fatJarName,jvmVersion,buildFatJarTask,cleanTask,stageTask,preReleaseSuffixes).libs.versions.jvminstead of hardcoding21.repositories { mavenCentral() }block; it now lives centrally insettings.gradle.kts.settings.gradle.ktspluginManagement(gradlePluginPortal + mavenCentral).dependencyResolutionManagementwithRepositoriesMode.FAIL_ON_PROJECT_REPOSso subprojects can't silently introduce their own repos.gradle.propertiesgroup/version(now the canonical home).org.gradle.configuration-cache=true.org.gradle.jvmargsfor larger heap, metaspace, and stack so Kotlin compilation stops OOMing in CI/Docker builds..gitignore.DS_Store.Test plan
./gradlew build -x testsucceeds locally with the new Gradle 9.5.0 wrapper.make buildandmake jarsucceed.make upgrade-wrapperis a no-op (wrapper already at the pinned version).stagetask still produces the fat JAR.make build-docker) still builds and runs.🤖 Generated with Claude Code