Skip to content

Opt in to Gradle wrapper use if present, or custom option if not #9157

Open

Description

@gwinstanley

Description

The current Gradle config settings (NB28) allow one of:

  • Prefer to use Gradle Wrapper that Comes with the Project
  • Custom

Given that it inevitably/understandably takes time for each version of NB to support new features, it would be useful to have the option to use Gradle Wrapper if present, with a custom fallback otherwise (instead of fallback to the bundled Gradle version).

Use case/motivation

Trying to improve Gradle version selection for different projects with/without use of wrapper.

Related issues

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:feature
    needs:triage
    on Jan 23, 2026
  2. neilcsmith-net commented on Jan 23, 2026

    @neilcsmith-net
    Member

    Your request could describe what exists already. What differs? A dropdown of available versions for custom selection?

    There is no bundled Gradle btw.

  3. added
    Gradle
    on Jan 23, 2026
  4. gwinstanley commented on Jan 23, 2026

    @gwinstanley
    Author

    Interesting, as I thought (at least historically) there was a Gradle version bundled. As I mentioned in my original post, there currently exist two options: (1) prefer wrapper, (2) custom. I'm interested in another option which chooses the wrapper if present, or a custom Gradle if not. Not all projects have a wrapper definition, so having a suitable fallback seems to make sense.

    Until recently I've mostly been using a custom Gradle option, pointing to a symlink for my own Gradle installation. However this doesn't accommodate some projects (e.g. web projects) which currently need an older Gradle version to work correctly with NB IDE interface. My most typical workflow is actually to not use wrapper during development (then hard-define it at point of release), as I aim for most of my own projects to use cutting-edge versions where possible, and this seems the simplest workflow. However, some projects clearly need to override this and use older versions. Yes, I could indeed define wrappers for every project, yet it adds yet another layer of admin burden.

    This seems likely a simple enhancement to NB, although admittedly not a priority, hence a feature request rather than bug report.

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:featureneeds:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions