spring-projects / spring-projects/spring-boot

Consider moving Kotlin examples to their own package

Open
#46,172 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: pending-design-work type: task
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

With the move to Kotlin 2, the compiler forbids the use of a Java class and a Kotlin class with the same FQN. We've temporarily removed java source code from the kotlin compilation to work around this but we should probably offer a better option

https://github.com/spring-projects/spring-boot/blob/669e4cd6bf732804d96f9ca1ff8fcfd0a01104d1/spring-boot-project/spring-boot-docs/build.gradle#L66-L69

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading spring-boot-project/spring-boot-docs/build.gradle around lines 66-69 and locating the Kotlin examples it configures. Determine how the examples can be moved into their own package under the Kotlin 2 compiler rules, then verify that the temporary Java-source workaround is no longer needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
build-system, documentation
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.