-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Move the build to gradle? #200
Comments
Gradle's site has a side-by-side comparison GIF of Apache Commons Lang library building with Gradle (without build cache) vs Maven: That page lists additional selling points on Gradle. I'm interested in seeing how the distributed build cache would improve builds. We can get started with Doing this and running the build exposed an issue with two tests, where I just had to move a temp folder setup to The build in gradle takes 17s:
And as an example, when no tests have changed,
Flipping an
Time differences between the two: Maven, clean/test (maven has no build cache)
Gradle, clean/test (explicitly disable build cache, which is disabled by default)
Gradle, with build cache (I've added
I haven't looked too closely to see if there are additional plugins running as a part of the maven build which would affect the above numbers. This is just a quick run to evaluate. I've opened #205 with the changes required for the above. I'll spend some time as well looking at what it would take to convert CI scripts. |
you guys will live to regret moving the build over to Gradle, it may solve some of your problems but will definitely introduce a whole host of new problems that will leave you banging your head against the wall and make you regret the decision to move ... you have been warned |
@alan-czajkowski can you provide any meaningful or constructive feedback about why you think this? Plenty of large projects use Gradle without fail. |
the assumption you just made "Plenty of large projects use Gradle without fail" is probably false here's a few reasons that will make you bang your head against the wall after you've used Gradle for an extensive period of time:
why stick with Maven?
|
@jmini @jimschubert what is the appetite in 2022 for moving the overall build from maven to gradle? |
you will regret moving from Maven to Gradle, you have been warned ... |
@wing328 any appetite on moving everything to gradle in 2024? |
please do not move to Gradle, see all of my comments above |
and please stop using performance benchmarks to show "speed of Gradle" that have been disproven countless times for average workflows ... Gradle is much more difficult to work with (UX) than Maven, to get the desired results you want out of a build ... Gradle is just the Ant chaos we moved away from (when Maven was introduced), it's just that Gradle has a bit of lipstick on it, meaning: all standards are thrown out with Gradle and your build becomes the wild west again, you can do whatever you want! (this is not good, because then your build is a snowflake, and not transferrable between developers), something we solved with Maven and we are back to losing it now, again, with Gradle |
As discussed in #162, our builds gets more and more complex and takes to long on small hardware.
If we switch to gradle:
openapi-generator-gradle-plugin
The text was updated successfully, but these errors were encountered: