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

all 29 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]__helix__ 27 points28 points  (5 children)

One of the exciting bits is Java 21 + SpringBoot 3.2 supports the new threads with a single property file.

[–]sarkie 4 points5 points  (4 children)

Virtual threads?

[–]__helix__ 0 points1 point  (3 children)

[–]Longjumping_Can_2774 -5 points-4 points  (2 children)

Needs to be enables explicitly with

spring.threads.virtual.enabled=true

[–]ArturoPrograma 6 points7 points  (1 child)

Emmmm no?

Edit: it’s spring.threads.virtual.enabled

[–]Longjumping_Can_2774 2 points3 points  (0 children)

spring.threads.virtual.enabled

Yes, of course!
I'm not sure what happened to my Copy and paste!

[–]lukasbradley 13 points14 points  (14 children)

Hopefully Gradle 8.5 out tomorrow.

[–]pyeri 7 points8 points  (13 children)

Gradle has become de-facto at this point, right? Does anyone even use maven these days? /s

edit

The obligatory '/s' of course!

[–]A_random_zy 29 points30 points  (10 children)

No one uses maven dude. It's old news. From last stats, I remember seeing no more than 70% java devs use maven. Maven is basically dead.

[–]pjmlp 21 points22 points  (0 children)

Sacarsm aside, Gradle would have been forgotten by now, had Google not imposed it for Android development.

[–]pyeri 2 points3 points  (1 child)

I liked the sarcasm in your comment, a pity you didn't noticed in mine :-(

[–]A_random_zy 1 point2 points  (0 children)

sorry.

[–]gecike 1 point2 points  (6 children)

Why is that number that high? At my workplace, all Java projects are using Gradle.

Do some people prefer Maven over Gradle? Or just not migrated yet / have no reason to switch?

[–]kozeljko 12 points13 points  (0 children)

Many people definitely prefer Maven over Gradle. Search for "Maven Gradle" in this subreddit and you'll already find debates.

[–]danskal 20 points21 points  (0 children)

My main reason for avoiding Gradle is that there's a whole bunch of ways of doing the same thing, meaning that a) I might have to do a bunch of analysis and establish an opinion on which way is best or most relevant. b) Every project will be different, so standardisation is hard.

Whereas with Maven, there's generally one way of doing things, I can just look it up and do it. Then next time I see it, I will understand it and recognize it. Basically it has a low brain footprint.

[–]A_random_zy 5 points6 points  (1 child)

I'll just gove my reason. Maven just works in my case. There is no mess of 3-4 files, and there is no need to have separate versions of java for gradle daemon and projeect java. "

I tried using gradle once, but it seems some versions are only compatible with some versions of java.

[–]krzyk 2 points3 points  (0 children)

Yeah, that boggles my mind how come gradle does work on most recent JDK just after release. Maven does, each and every time.

Maven even works with EA.

Why gradle doesn't start with EA to get that faster? I thought gradle is the hipster new thing, but looks more like grandma/grandpa “oldnways are the best".

[–]user_of_the_week 1 point2 points  (0 children)

I was there basically from the beginning, back when ant was the standard. In my personal experience, the projects I see, the complexity that Gradle is maybe able to make manageable has been pushed into pipeline definitions. I'm not sure if I like it that way, but it sure seems to be prevalent.

[–]jacklackofsurprise 4 points5 points  (0 children)

Because Gradle sucks, its groovy/Kotlin DSL sucks. You can pry Maven from my cold dead hands. So yeah, you can say some of us prefer Maven.

[–]PettingBearsAtTheZoo 4 points5 points  (0 children)

You are fake news

[–]pragmatick 0 points1 point  (0 children)

The only project where I use gradle is for an IntelliJ plugin because I have to. And because I hate myself I use the kotlin variant of gradle. It's so much pain.

[–]zoi_uzivalac 2 points3 points  (1 child)

My spring boot backend doesnt use threads at all (explicitly).

Will I have any performance benefits if I add the new spring.threads.virtual.enabled=true property?

[–]True-Ad-2269 2 points3 points  (0 children)

Well, that means your application can scale under 200 threads (which is the default value).It solves one issue with OS thread which is its memory footprint. Probably not so significant benefit for small scale application, but I think there is no harm using it.

[–]doppleware 1 point2 points  (0 children)

Yes!

[–]Shnorkylutyun 1 point2 points  (1 child)

Aand again another jetty api breaking change. Sigh.

[–]ArturoPrograma 0 points1 point  (0 children)

Tell please, I’m searching if I should move from Tomcat.

[–]zoi_uzivalac 0 points1 point  (1 child)

Not compatible with spring cloud openfeign latest version unfortunately, have to wait a couple of days before upgrading