Skip to content

Groovy incorrectly cast workingDir object to wrong class #294

@tranpeter

Description

@tranpeter

In my build.gradle, I define a task with the following definition:

task customNpmInstall(type: NpmTask) {
    workingDir="${projectDir}/00_publish"
    args = ["install", "--production"]
}

The Groovy incorrectly cast the Object type to String rather than a java.io.File as required in the NpmTask code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions