Skip to content

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

Open

Description

@pressing-buttons

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

Activity

  1. added
    kind:bug
    needs:triage
    on Jan 22, 2025
  2. added
    Gradle
    on Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Gradlekind:bugneeds:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions