[SPR-17245] Provide code samples in Kotlin in addition to Java Created: 05/Sep/18  Updated: 15/Jan/19

Status: Open
Project: Spring Framework
Component/s: [Documentation]
Affects Version/s: None
Fix Version/s: 5.2 RC1

Type: Task Priority: Minor
Reporter: Sébastien Deleuze Assignee: Sébastien Deleuze
Resolution: Unresolved Votes: 1
Labels: kotlin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Days since last comment: 26 weeks, 2 days ago
Last commented by a User: true
Last updater: Spring Issuemaster

 Description   

Even if we have a dedicated Kotlin section in our reference documentation, all the code samples are in Java, requiring an effort for Kotlin users to translate it. I would like to make our documentation more natively Kotlin friendly by translating our code example to Kotlin.

This could be done via a Kotlin tab (in addition to the Java one) on each code sample block, and by generating 2 versions of the documentation: one in Java, one in Kotlin.



 Comments   
Comment by Sébastien Deleuze [ 08/Oct/18 ]

Gradle team shared what they use on their documentation to have nice looking Groovy + Kotlin code snippets + cookie based remembering of the chosen language. I think it could be a good fit for us, it would be also nice to be able to link a specific language like we do on start.spring.io.

Comment by Sébastien Deleuze [ 15/Oct/18 ]

There is now also a dedicated blog post.

Comment by Spring Issuemaster [ 14/Jan/19 ]

The Spring Framework has migrated to GitHub Issues. Please visit spring-projects/spring-framework#21778 for further activity, or to subscribe to receive notifications.

Generated at Thu Jul 18 15:00:38 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.