Generator-jhipster: support for kotlin as a server-side language

Created on 20 Dec 2015  ยท  29Comments  ยท  Source: jhipster/generator-jhipster

Could also be a client side language?

module

Most helpful comment

IMHO it should rather be core feature not a module, because Kotlin is a hipster language for jvm with 100% and seemless java compatibility. It is really trending at the moment and there are examples to use it with spring boot.

All 29 comments

What do you want to do with it???

Choosing Kotlin (for server-side) as an option would mean you get:

  • A Build file with the Kotlin maven or gradle plugin
  • Relevant Spring Boot and other stubs generated in Kotlin instead of Java.

I'm just starting to use JHipster, so if you like I can come back with something more specific after I see exactly what it can already currently do.

It could be a module, have a look at the "market place".

:+1: That looks good. It may something Jetbrains are interested in contributing - I'll open a ticket on their tracker and see what they say. Otherwise I or someone will surely do it.

Yes this is done exactly for this kind of need, and I will do my best to support this.

I'm closing this as it's going to be a module -> don't hesitate to open issues if you want more variables/functions for your module!

IMHO it should rather be core feature not a module, because Kotlin is a hipster language for jvm with 100% and seemless java compatibility. It is really trending at the moment and there are examples to use it with spring boot.

It is time to create KHipster with Kotlin, Spring and Angular 2 :)

Any plans on kotlin support after google's announcement?

I don't think we can support Java and kotlin.

Spring 5 is going to have native Kotlin support but start.spring.io allows it already. Spark already supports Kotlin. Think about it. Kotlin is a nice Java drop-in replacement.

Is it possible to create yeoman Kotlin generator to replace the default Java based?

The @jhipster/hipsters team doesn't have any plans to add a new language for the backend code. It's a lot of work, with not much reward. Also, we'd have to change the name to KHipster if we did. ๐Ÿ˜‰

You're more than welcome to create a module that replaces the Java code with Kotlin. https://jhipster.github.io/modules/creating-a-module/

You could also just generate your JHipster project, then use the IDE to convert it to Kotlin. The IDE is supposed to be very good at that.

I found this talk quite interesting KotlinConf 2017 - You Can, but Should You?.

Personally, I'd like to be able to play with Kotlin in JHipster but only if generator was written by a Kotlin expert not by an Expert Beginner ;)

@gmarziou how are those links relevant in the discussion of introducing Kotlin to JHipster project?

I'm just discussing with other team members and unless I'm wrong I guess none of us is an expert in Kotlin which basically concludes that we are not the best ones to introduce Kotlin into JHipster.

I made a good progress in converting the application into kotlin and succeeded in running it (but that doesnt mean am an expert). But it is somewhat cool, I am checking with the conventions and aligning more towards the design of the language.

This is cool. It's not very easy to know which idioms to use in another language after years of Java. It seems it will be easier with new versions of Spring / Spring Boot.

yeah exactly. But its like you can have refresher course in java when converting ๐Ÿ˜‰ Most of all it works ๐Ÿ˜

@sendilkumarn if you start a module under hipster-labs I will contribute !

Warning though : it's a lot of effort to keep up-to-date with the main gen

yeah exactly. I will do that for sure :)

Do it as a server blueprint

Thanks & Regards,
Deepu

On Sat, Nov 18, 2017 at 5:06 PM, Sendil Kumar N notifications@github.com
wrote:

yeah exactly. I will do that for sure :)

โ€”
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/2505#issuecomment-345451870,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlF1jbR3F27KaR8mv0FQILi14_jINXks5s3wBugaJpZM4G4vf7
.

Also, IntelliJ can auto-convert from Java to Kotlin when copy-pasting in case you guys aren't aware

feel free to try it with constructor ๐Ÿ˜‰๐Ÿ˜Ž

spring boot 2.0 supports kotlin now and jhipster should provide support for kotlin, right?

@mizanRahman spring boot supports lot of things, doesnt mean we will support all of them. Anyways @sendilkumarn is working on a Kotlin blueprint for JHipster

Leaving a comment here, so any of you guys interested in contributing towards kotlin server side code, here we go repo is here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deepu105 picture deepu105  ยท  53Comments

loydjayme25 picture loydjayme25  ยท  71Comments

jdubois picture jdubois  ยท  339Comments

jdubois picture jdubois  ยท  54Comments

deepu105 picture deepu105  ยท  81Comments