Skip to content
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

Removed a few defunct Gradle Settings #6516

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

lkishalmi
Copy link
Contributor

Removed the following no-more useful Settings from Gradle:

  • Start Gradle Daemon on IDE Start
    In the early days (2.x,3.x) it could have saved a few seconds, by loading the Daemon early, however in those days the Wrapper was not commonly used. Usually every project were used with one Gradle version set in the IDE. Project loading was also done by that daemon. Today, there is no advantage to fire up a Gradle Daemon which most likely won't be used.
  • Install Gradle Runtime Silently
    It started to download a new Gradle version when it was selected in the settings dialog right when the dialog settings were applied. It could save a few seconds in the old days. Today it is usually done by the wrapper, and the project trust replaced this functionality.
  • Do not Rebuild Project Dependencies
    In the older days, this was a real performance boost working on projects. Right now the flag state is, I'd say undecided. It got removed in Gradle 8.0 without deprecation, got restored in Gradle 8.0.1. There is no sigh of deprecation since then. We put it in deprecated on NB18 for the option removal in NB20. It still can be used if someone overwrite the Gradle actions, but it's better to leave this option out.

image

@lkishalmi lkishalmi added the Gradle [ci] enable "build tools" tests label Oct 3, 2023
@lkishalmi lkishalmi added this to the NB20 milestone Oct 3, 2023
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good cleanup. I quickly checked the layout and everything resized fine.

@lkishalmi lkishalmi requested a review from sdedic October 3, 2023 04:40
<version major="2" minor="36"/>
<date day="2" month="10" year="2023"/>
<author login="lkishalmi"/>
<compatibility semantic="compatible" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO semantic should be incompatible: code that hopes the setter (setting) has some effect may break.

* @param b
* @deprecated
*/
@Deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider to log a WARNING-level message in the setters.

Copy link
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! Not tested as yet.

The other setting I have questions about on that page is actually the utility of standard Gradle version!

@mbien
Copy link
Member

mbien commented Oct 14, 2023

wanted to merge but seeing two unresolved reviewer comments, freeze is on the 17th.

@lkishalmi
Copy link
Contributor Author

I've started to work on removing the Grade version selector and adding a default java runtime instead. I hope I can submit that work on this branch tomorrow.

@lkishalmi
Copy link
Contributor Author

image

Further cleanup, removed the option to select the Gradle version, added default Java Runtime selection for Gradle execution.

There could be further enhancements, around warnings and auto selecting the proper JDK for Gradle Execution, but this is how far I could go before NB20 window closes.

@mbien
Copy link
Member

mbien commented Oct 16, 2023

as discussed on apache slack, going to add a commit which fixes some minor layout issues. Some show up right away, some are only visible when the window is resized:
layout-issues-gradle1
layout-issues-gradle2
layout-issues-gradle3
layout-issues-gradle4

@mbien mbien added the ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) label Oct 16, 2023
 - consistent gaps between components and resize behavior
 - checked anchoring, editable state etc

mostly in project properties and global gradle settings.
@lkishalmi lkishalmi merged commit 8cbb672 into apache:master Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Gradle [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants