Skip to content

chore: upgrade Kotlin 2.1, JVM 21, Gradle 8.14, MockK#3

Open
adrian-afergon wants to merge 2 commits into
masterfrom
chore/modernize-2026
Open

chore: upgrade Kotlin 2.1, JVM 21, Gradle 8.14, MockK#3
adrian-afergon wants to merge 2 commits into
masterfrom
chore/modernize-2026

Conversation

@adrian-afergon

Copy link
Copy Markdown
Member

Summary\n- upgrade Kotlin to 2.1.21 and switch to JVM toolchain 21\n- update Gradle wrapper to 8.14 and add Gradle JVM args\n- update test dependencies to JUnit 5.13, AssertJ 3.27.3 and MockK\n- migrate StringCalculatorShould test imports/usages from Mockito to MockK\n- refresh README version mentions\n\n## Notes\n- No build tools were executed as requested.\n- No production source files were modified.

Copilot AI left a comment

Copy link
Copy Markdown

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 upgrades the project’s build/test toolchain (Kotlin/Gradle/JVM) and updates the test stack by replacing Mockito with MockK, keeping production sources unchanged.

Changes:

  • Upgraded Kotlin to 2.1.21 and configured Kotlin JVM toolchain to 21.
  • Updated Gradle wrapper to 8.14 and added Gradle JVM args.
  • Updated test dependencies (JUnit Jupiter 5.13.0, AssertJ 3.27.3, MockK 1.14.2) and migrated the StringCalculatorShould test from Mockito to MockK.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/kotlin/dev/kata/stringcalculator/StringCalculatorShould.kt Migrates the test from Mockito-Kotlin to MockK stubbing.
README.md Updates the README’s dependency/version mentions (currently slightly mismatched).
gradle/wrapper/gradle-wrapper.properties Bumps Gradle wrapper distribution to 8.14.
gradle.properties Adds org.gradle.jvmargs configuration.
build.gradle.kts Upgrades Kotlin + test dependencies; configures JVM toolchain 21; removes Mockito deps.

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

Comment thread README.md
## Description

Template to practice TDD using Kotlin, AssertJ and Mockito-Kotlin No newline at end of file
Template to practice TDD using Kotlin 2.1, JUnit5 5.13, AssertJ 3.27 and MockK
@adrian-afergon adrian-afergon self-assigned this Jun 19, 2026
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.

2 participants