-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider Changing Gradle Default to Kotlin #1155
Comments
Thanks for the suggestion. This is something that we've been keeping an eye on for a while. As things stand, we'd like to see improvements in the support for Kotlin in Eclipse, or for the Kotlin DSL to be easier to write by hand without IDE assistance, before changing the default. There's some more background in #956. |
Following up with some updates on this... As #956 and @wilkinsona highlight, the primary blockers to switching the default to the Kotlin build scripts are:
For 1, that is now available in Gradle with support in IntelliJ (more details). For 2, we've had a Google Summer of Code project going that added KTS editing support through the Buildship plugin. This is still in progress but wanted to check on how I can help validate / setup a change to the Kotlin scripts as the default. For example, should I make a PR to the initializr to use the property setter syntax in KTS build files? Do we need docs for Eclipse KTS editing on the Spring side? Other things? Thanks! |
Thanks for the property assignment improvement, that allows much more idiomatic build files. For Eclipse support, I am not myself an Eclipse user, but maybe let us know when that's released and we can reach the members of the Spring team using Eclipse for feedback? |
The Eclipse KTS Support has been released: https://discuss.gradle.org/t/buildship-3-1-8-is-now-available/47036 Let me know if there are any remaining issues with switching the default to KTS. Note that IntelliJ, Gradle, and Android now all have KTS as their default. |
The release notes state that there is only "incubating" support and specifically:
So it's not ready for prime time yet. |
Can you have some of your Eclipse users try it and see if it is better than the Groovy support? And if not, that will establish the necessary gaps to fill. |
Instead of fiddling with our defaults (which is most of the time a personal opinion), we're going to remember the last choice the user made. That's something the IDE clients do, too. I've opened #1403 for that. |
Defaults (for users who don't know which to pick) are important and it still would be great to align the default on start.spring.io with the same defaults Gradle, Google, and JetBrains use. |
With the publication of Kotlin DSL is Now the Default for New Gradle Builds it would be good to consider changing the default Gradle setting to use the Kotlin DSL
The text was updated successfully, but these errors were encountered: