Skip to content

Prevent running unnecesarily #161

Closed
Closed
@r89m

Description

@r89m

Hi Vojtěch,

Thanks for you tool - I've been finding it really useful.

One issue I've been having it that it runs a bit too often (on every build) due to the addition of the generateTypeScript tasks as a dependency on the classes tasks here:
https://github.com/vojtechhabarta/typescript-generator/blob/master/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPlugin.java#L14-L16

Is there a reason for this, or would it be possible to configure it to not always run?
At the moment I'm doing classes.dependsOn.remove(generateTypeScript) which works but feels like a work around. I'd love it if I could configure it to only run when I call generateTypeScript

Thanks,

Richard

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions