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

Comment From: Nivetha217

I'd like to work on this issue. Please assign it to me.

Comment From: wilkinsona

Thanks for the offer, @Nivetha217, but we haven't yet decided if this is something that we want to do. If we do it, I think it will also require changes to some of our Antora/Asciidoctor extensions as the code's currently expected to be in a package whose name is derived from the documentation section ID.

Comment From: Nivetha217

Thanks for letting me know. I'll pick up some other task then.