[BUG] Gradle plugin: incremental build does not work if outputDir
is not in $buildDir
#11356
Open
2 of 6 tasks
Labels
Bug Report Checklist
Description
When I use the
GenerateTask
and want to target anoutputDir
which path is not in the$buildDir
the client I'm generating is generated on each build and I don't benefit from incremental builds (UP-TO-DATE
flag on task).I'm wondering if this is something related to Gradle our this plugin specifically and if there's an existing workaround.
If I use the $buildDir in the outputDir path the incremental build works, and my client get generated only upon spec updates.
openapi-generator version
5.3.1
Steps to reproduce
No incremental builds with the following
build.gradle
Works as expected when using
$buildDir
in theoutputDir
path:task generateApiClient(type: GenerateTask) {
inputSpec = "$rootDir.absolutePath/airbyte-api/src/main/openapi/config.yaml"
outputDir = "$buildDir/airbyte_api_client"
}
Related issues/PRs
@HenningWaack PR's #6716 introduced support for incremental build.
The text was updated successfully, but these errors were encountered: