"Resource-only" sub projects are not show correct with gradle #8180
Labels
Gradle
[ci] enable "build tools" tests
kind:bug
Bug report or fix
needs:triage
Requires attention from one of the committers
Apache NetBeans version
Apache NetBeans 24
What happened
In a regular Java project, an additional node "Other Sources" is shown for anything below
src/main/resources
.If a gradle sub-project only consists of such a "resource" directory, this is not visible in the projects window in NetBeans.
The use case for such a sub-project is e.g. to have a common place for resource files across multiple sub-projects in a bigger (main) project.
I am working within a team where all others are using IntelliJ and it works there, so changing the project structure to fix this, isn't an option.
Language / Project Type / NetBeans Component
Java project using Gradle
How to reproduce
Unzip the attached archive (gradle-resource-only.zip) into an empty directry, then open the project. NetBeans will show two sub-projeccts: "application" and "commons". The commons sub-project has another sub-project called "sample-data". If that is opened in NetBeans, only "Configurations" and "Build Scripts" will be shown below the project's node. I expected another node "Other Sources" where the resource files can directly be accessed from within the project window (same as with the "application" sub-project).
gradle-resource-only.zip
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows, Linux
JDK
JDK 17, JDK 21 (from Adoptium)
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: