I don't use the wrapper until a project is final or I have to share it.
I am almost always on the bleeding edge as far as Gradle versions.  I keep
all of my projects on the most recent Gradle version when I work on
them, often on the latest release candidate (unless I encounter problems -
which I want to be aware of so I can report them or fix my scripts).  The
wrapper just adds overhead for my day to day usage. I don't need a zillion
versions of Gradle cached on my system.  If the project is to be shared,
then I add the wrapper because then it makes sense.

My NB settings are such that I use a version of Gradle at a fixed location
via Custom Gradle Distribution, which is just a symlink to the
latest version of Gradle that I have downloaded.  That symlink is also on
my path.  So I'm using the latest Gradle in NB and from the command line,
unless I invoke the wrapper instead.

So I don't want the Custom Gradle Distribution option to go away.

The Gradle User Home option is useless to me.  I don't understand why I
would ever want to change that.  That's just asking for trouble as then my
command line builds would be doing something different from my NB builds
and I don't want that.
[image: image.png]
Scott

On Sat, Feb 11, 2023 at 2:39 AM Laszlo Kishalmi <laszlo.kisha...@gmail.com>
wrote:

> Dear all,
>
> I'd like to collect some feedback on the Gradle Distribution Settings
> (Tools > Options > Java > Gradle > Execution Panel > Distribution Section)
>
> Over the years, Gradle evolved and some usage patterns has changed.
>
> 8 years ago, Gradle Daemon was in incubation phase. It could took a few
> (5-10) seconds to start a daemon especially with HDDs.
> People usually installed some latest Gradle and used that globally,
> wrapper was not yet popular.
>
> I think the following settings are obsolete:
>    - Start Gradle Daemon on IDE Start: Most people are using wrappers,
> so a daemon with the IDE defined distribution, just wasting resources.
>    - Install Gradle Runtime Silently (Project trust is fine for that)
>
> The following options are questionable:
>    Custom Gradle Distribution. (I think I've used only once around 2.3
> when I built my own Gradle distribution due to a bug in Gradle)
>
> The Gradle Distribution Selector Combo Box is over engineered. I would
> replace that and the
> "Prefer to Use Gradle Wrapper that Comes with the Project" check box in
> a simple combo with elements:
> Wrapper
> 8.0
> 7.6
> ....
> 3.0
>
> I would drop the selection below at least 3.0 (Gradle 2.x are ancient,
> and there are a few versions which are not working well with NetBeans)
>
> So at the end I would keep the Gradle Home and the combined distribution
> selector. Probably move that to root project level as well.
>
> What do you think?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to