Skip to content

Corepack & Gradle 9 #351

Description

@solonovamax

Hey,

I just wanted to open an issue because I'm currently maintaining my own personal fork of node-gradle in order to add gradle 9 support, as well as support for corepack (#342): https://github.com/solonovamax/gradle-node-plugin/

it's not currently in a condition where I'd feel comfortable PRing it, but it was enough for my usecase.
if you wanted to pull those commits into node-gradle, I'd be more than happy to help with that.
I've based my fork on the update-node-version and update-node-version branches.

Support for corepack was actually relatively straightforward. it seems that you can basically just prefix the command with corepack, and then it Just Works™
e.g. instead of doing pnpm install, you do corepack pnpm install

the one thing that was just rather annoying was fixing the mocking for ExecOperations:
b0a4b48#diff-3e86f30a7042837bd17d78bacc8469493ef25f4b0037fe2a2ddb2e841dd2ab6cL27-R33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions