Skip to content

Conversation

@andy1li
Copy link
Member

@andy1li andy1li commented Oct 7, 2025

Note

Migrates Kotlin HTTP server starter/solutions from Maven/Kotlin 2.0 to Gradle/Kotlin 2.2, updating build/run scripts, project structure, configs, CI, and Docker accordingly.

  • Build system & versioning:
    • Switch from Maven to Gradle (app/build.gradle.kts, settings.gradle.kts, gradle/libs.versions.toml, gradle.properties); update .gitignore for Gradle.
    • Upgrade runtime from kotlin-2.0 to kotlin-2.2 in codecrafters.yml; add dockerfiles/kotlin-2.2.Dockerfile (Gradle JDK24 base).
  • Scripts:
    • Update *.codecrafters/compile.sh and your_program.sh to gradle distTar and extract distribution.
    • Change *.codecrafters/run.sh to execute distributions/app/bin/app instead of java -jar.
  • Project structure & docs:
    • Move entry point to app/src/main/kotlin/App.kt; update README.md, explanation.md references.
    • Update starter_templates and solutions to mirror Gradle layout; adjust config.yml (required_executable to Gradle, user_editable_file path).
  • CI:
    • Enhance .github/workflows/test.yml with with.sdkRef: main, permissions, and secrets: inherit.

Written by Cursor Bugbot for commit 1fa68e9. This will update automatically on new commits. Configure here.

…ing; refactor entry point to 'app/src/main/kotlin/App.kt', and update related configurations and documentation.
@andy1li andy1li self-assigned this Oct 7, 2025
@linear
Copy link

linear bot commented Oct 7, 2025

@andy1li andy1li merged commit b840ee9 into main Oct 7, 2025
24 of 25 checks passed
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