Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Support incremental builds in gradle plugin #4492

Closed
donaldswartz opened this issue Nov 14, 2019 · 2 comments
Closed

[REQ] Support incremental builds in gradle plugin #4492

donaldswartz opened this issue Nov 14, 2019 · 2 comments

Comments

@donaldswartz
Copy link

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 #

@sesamzoo
Copy link

@jimschubert
Copy link
Member

This has been contributed via #6716 and will be included in our 5.0 release.

It required bumping up from our previous minimum Gradle version to support everything fully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants