netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Gradle : gradle.properties on [root] : Changes are not detected

Open maerevoet-wim opened this issue 3 years ago • 2 comments

Apache NetBeans version

Apache NetBeans 15

What happened

We have a gradle main project with subprojects. Some sub projects have an extra source set which is defined based on a property set in gradle.properties in the root folder.

In Netbeans 14, if we changed the gradle.properties file, Netbeans detected the change and reloaded all the required sub projects. In Netbeans 15 , this doesn't happen anymore.

I have deleted the cache of NB15, and now even if I reload manually the project, the incorrect source folder is visible in the project tree.

How to reproduce

No response

Did this work correctly in an earlier version?

Apache NetBeans 14

Operating System

Windows 10

JDK

JDK 11

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

maerevoet-wim avatar Sep 22 '22 15:09 maerevoet-wim

Additional information / Workaround If I disable Tools - Options - Java - Gradle - Experimental - Performance : Use On-disk cache , the change detection works again.

And I think the problem initially started after changing git branches.

maerevoet-wim avatar Sep 23 '22 11:09 maerevoet-wim

Interesting. Thank you!

lkishalmi avatar Sep 23 '22 20:09 lkishalmi