Skip to content

[REQ] Support incremental builds in gradle plugin #4492

@donaldswartz

Description

@donaldswartz

Problem

Every time the gradle build runs, it runs the openApiGenerate task because it does not know when it is up-to-date. Gradle supports incremental builds via various methods.

Desired solution

Mark the correct Task Parameters in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GeneratorsTask.kt using the @Input, @InputFile, @OutputDirectory and other annotations as necessary, so that Gradle knows when all outputs are up-to-date.

More information can be found here: https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:up_to_date_checks #

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions