Draft
Conversation
Agent-Logs-Url: https://github.com/halfninja/random-name-generator/sessions/66bc8f66-e4a6-41a7-9a61-65992bc842e6 Co-authored-by: halfninja <72052+halfninja@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rewrite project as a Kotlin application using Gradle
Rewrite as Kotlin project built with Gradle
Mar 26, 2026
Owner
|
Define GitHub action to run test task |
Owner
@copilot pls |
Agent-Logs-Url: https://github.com/halfninja/random-name-generator/sessions/1b6d0498-ecb1-44b8-a895-af25c60c4d3d Co-authored-by: halfninja <72052+halfninja@users.noreply.github.com>
Author
halfninja
requested changes
Mar 26, 2026
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-java@v4 |
Author
There was a problem hiding this comment.
Done in commit 3fea20a — added cache: gradle to the actions/setup-java step, which uses the built-in Gradle cache support to cache ~/.gradle/caches and ~/.gradle/wrapper.
Agent-Logs-Url: https://github.com/halfninja/random-name-generator/sessions/1ea6d5ea-e598-4aa9-993e-9ff77c92eae5 Co-authored-by: halfninja <72052+halfninja@users.noreply.github.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.
Replaces the Scala/SBT implementation with idiomatic Kotlin built via Gradle (Kotlin DSL).
Build
build.gradle.kts+settings.gradle.ktsusingkotlin("jvm")plugin 2.0.21, Java 17 toolchain, JUnit 5gradlew) — build with./gradlew buildCI
.github/workflows/ci.yml— GitHub Actions workflow that runs./gradlew teston every push and pull request using Java 17 (Temurin)cache: gradleon theactions/setup-javastepSource (
src/main/kotlin/uk/co/halfninja/randomnames/)trait NameGeneratorinterface NameGeneratorsealed trait Gender/ case objectssealed class Gender/ singletonobjectscase class Namedata class Nameobject Randomness/CompositeNameGenerator/EnglishlikeNameGenerator/NameGeneratorsTests (
src/test/kotlin/)ScalaTest
FunSuite→ JUnit 5@Test. All seeded-output assertions retained unchanged — both implementations usejava.util.Random, so deterministic outputs are identical.Removed
build.sbt,pom.xml,project/, allsrc/*/scala/sources.Original prompt
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.