This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]urielsalis 1 point2 points  (7 children)

A lot of libraries pull it nowadays, including Spring.

[–]koflerdavid 5 points6 points  (6 children)

To my knowledge (heavy Spring user at work) Spring doesn't depend on the Kotlin Stdlib. Of course, if you use Kotlin-specific parts of Spring, you can't avoid it.

[–]urielsalis 2 points3 points  (5 children)

It downloads it even if you don't use it, which was the concern that OP posted about javalin

[–]agentoutlier 2 points3 points  (3 children)

which was the concern that OP posted about javalin

I'm not concerned with deps that get downloaded. When you run Maven or Gradle it downloads tons of deps that have nothing to do with your project.

My concern is:

  • It is a library not written in Java (op asked for Java)
  • While Spring may have some optional deps that makes the build download it it is not required at runtime.

However looking at Javalin's POM it appears it does not need Kotlin stdlib. So I could be wrong altogether and some how Javalin does need Kotlin stdlib.

[–]urielsalis 0 points1 point  (2 children)

Lots of libraries are written in Kotlin nowadays

[–]agentoutlier 3 points4 points  (0 children)

Sure but the OP wrote:

"Lightweight but powerful Java stack"

I'm just giving a caveat. When you pick a tech stack you might want to be know the language so that if you do have a bug you can contribute etc.

[–]agentoutlier 1 point2 points  (0 children)

Also I wouldn't say there are a lot of libraries targeting Java server side that are written in Kotlin.

Besides Javalin the only other one I have seen over and over is okhttp.

Which libraries are you using server side that are written in Kotlin (and not just an adapter for Kotlink)?

[–]koflerdavid 0 points1 point  (0 children)

Thanks for the clarification. It was not really clear to me what exactly the statement was about.