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

"Resource-only" sub projects are not show correct with gradle #8180

Open
pressing-buttons opened this issue Jan 22, 2025 · 0 comments
Open
Labels
Gradle [ci] enable "build tools" tests kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@pressing-buttons
Copy link

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

@pressing-buttons pressing-buttons added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Jan 22, 2025
@mbien mbien added the Gradle [ci] enable "build tools" tests label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

2 participants