How to Add Kotlin to a Java Project with Maven

preview_player
Показать описание


#spring #kotlin #serverside #maven
Рекомендации по теме
Комментарии
Автор

Hey, I'm working with Gradle, so yes, I'm interested to know how to do the same with that build tool.

AlexandreLiscia
Автор

It would be great to have the same tutorial done for gradle

broovka
Автор

When I try this with SpringBoot 3 and Java 21, the Java sources are not compiled.

MarianVarga-wrrl
Автор

It would have been interesting to see, if kotlin sources can depend on java sources and vice versa. Can they?

FrankNeblung
Автор

Just started working with a framework that is, effectively, making Java obsolete and has written most the newest features in Kotlin, and made an announcement that they will not be adding or updating the Java SDK. What in the actual f***

WisdomofHal
Автор

Please add a gradle veresion of this video.

I created a java spring app with spring intiailizer, worked on it for a week or so. I wanted to use kotlin for a jpa repository to use string interpolation, so I added kotlin files, configured project for kotlin, it only added the plugin entry in build.gradle. The app built and worked fine.

Now I return to my app a week later, I think I got confused and ran a gradlew command instead of a gradle command to build and now i'm getting an error in compileKotlin a NoClassDefFoundError. Have spent two hours now trying all the normal things to get my project back to working order without success.

SamTipton
Автор

I'm interested in seeing this in grade

sadeghabedi
Автор

Nice! Maybe would’ve been better to show which error you’d get if you didn’t include the spring compiler plug-in.

Off-topic: what happened to your enter key Anton? :) Sounds like some soda was spilled and it’s gotten really sticky. :)

TimSchraepen
join shbcf.ru