spring-projects / spring-projects/spring-boot
Consider moving Kotlin examples to their own package
Open
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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