Skip to content

Add Kotlin-in-Gradle-project skill#9

Open
e5l wants to merge 1 commit intomainfrom
add-kotlin-to-gradle-project-skill
Open

Add Kotlin-in-Gradle-project skill#9
e5l wants to merge 1 commit intomainfrom
add-kotlin-to-gradle-project-skill

Conversation

@e5l
Copy link
Copy Markdown
Member

@e5l e5l commented Mar 17, 2026

Summary

  • Adds kotlin-tooling-add-kotlin-to-gradle-project skill that guides configuring Kotlin in existing Java Gradle projects
  • Uses kotlin("jvm") plugin with jvmToolchain and kotlin("test") for minimal, clean mixed Java-Kotlin builds
  • Includes analysis script (scripts/analyze-gradle-project.sh), verification checklist, and compiler plugins reference (Spring, JPA, serialization)
  • Companion to the Maven equivalent in Add Kotlin-in-Maven-project skill #8

What the skill covers

  • Adding kotlin("jvm") plugin (both direct version and version catalog approaches)
  • Configuring jvmToolchain to match the project's Java version
  • Adding kotlin("test") dependency (auto-detects JUnit 5 from useJUnitPlatform())
  • Directory structure options (co-located .kt alongside .java vs separate kotlin/ dirs)
  • Multi-module Gradle projects (apply false + per-module, convention plugins, subprojects block)
  • Groovy DSL syntax
  • Common issues and troubleshooting

Test plan

  • Analysis script correctly detects unconfigured project (initial/) and configured project (complete/)
  • Skill agent test running against kotlin-junit-sample initial/ project (in progress)
  • CI validation should pass (kotlin-tooling-* naming convention)

🤖 Generated with Claude Code

Skill that guides configuring Kotlin in existing Java Gradle projects
using kotlin("jvm") plugin, jvmToolchain, and kotlin("test") for
minimal, clean mixed Java-Kotlin builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@e5l e5l force-pushed the add-kotlin-to-gradle-project-skill branch from fe1f37e to eab9523 Compare March 18, 2026 12:00
@Tapchicoma Tapchicoma mentioned this pull request Mar 25, 2026
@Tapchicoma
Copy link
Copy Markdown
Collaborator

I've asked @ksiarhey to verify this skill

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.

4 participants