NetBeans 10 has only Atilla's plugin. It is NetBeans 11.0 since Gradle
is supported out of the box. Atilla's plugin however still can be
installed, probably even in 12.0 by uninstalling the default Gradle modules.
On 7/20/20 12:51 PM, Emilian Bold wrote:
I'm not entirely certain but the Gradle support is NetBeans 10 is the
official one or the other plugin made by Atilla?
--emi
On Mon, Jul 20, 2020 at 1:29 AM Winter Silence
<[email protected] <mailto:[email protected]>> wrote:
I am a happy Netbeans user for about 3 years now. For a long time
I've been working for a single Gradle-managed Spring Boot project
and had developed a certain workflow I was enjoying. Right now I
am using NetBeans 10 and I am pretty much satisfied with it
(Except for a slow pop-up appearance when you do method
autocomplete but I got used to it).
So, at the top left corner there is a select-box where I can
choose an active profile. I created 3 profiles where I provided
Spring's spring.profiles.active setting through Custom Variables
Category(or tab whatever). Now I can choose some profile and press
F6 to run the project with it. This is very useful to me as I
often change the database I need to work with(One profile runs
with H2 and another with Mysql). Also It is very convenient to
just press one key and project always runs with the selected profile.
Recently I decided to give it a shot with Netbeans 12.0. Gradle
configuration has been changed drastically. There is no more
Profiles selectbox for Gradle projects. I discovered I can add a
custom task by stating some current task and provide some
additional parameters. But here are 2 problems with this approach:
1) It modifies my gradle.properties file (adds 2 properties
action.custom-1, action.custom-1.args) and it is under version
control. Now I must talk to the project manager and ask for
permission to commit the changes. I do not think he would be happy
to have some Netbeans specific properties in the configuration
considering only me in our team uses Netbeans. I rather liked the
old approach where all this additional stuff was saved in a Gradle
Plugin config files which were excluded from Git.
2) And most important one. How would I run my custom Task with a
key combination? When I press F6 always the default bootRun Spring
Boot task is executed. I always have to press the right mouse
button and select the desired Task from a context menu.
Considering all of that, it is not so comfortable to work with
Gradle projects anymore. Seems like a regression to me, so I stay
for Netbeans 10 for now.
And my question is. Is there a way to improve it? Maybe I am
missing something?
Is it possible to bring the profile selection back in some future
NetBeans versions?