chore: upgrade Kotlin 2.1, JVM 21, Gradle 8.14, MockK#3
Open
adrian-afergon wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
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
StringCalculatorShouldtest 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.
| ## 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 |
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\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.