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

Configuration cache #380

Open
itsnagaraj opened this issue May 16, 2023 · 3 comments
Open

Configuration cache #380

itsnagaraj opened this issue May 16, 2023 · 3 comments
Labels

Comments

@itsnagaraj
Copy link

Describe the bug

Unable to take advantage of the gradle configuration cache as the swagger codegen is failing with error

Execution failed for task ':platform.clients.assets:generateSwaggerCodeApi'.
> Could not get unknown property 'swaggerCodegen' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

Was wondering if there are any plans to update the plugin to support configuration cache.

To Reproduce:

Expected behavior:

Environment

Plugin version: 2.19.2
Swagger Codegen version: org.openapitools:openapi-generator-cli:6.2.0 and org.openapitools:openapi-generator-cli:4.3.0
Gradle version: 8.1.1
Java version: 11
OS: Mac

@itsnagaraj itsnagaraj added the bug label May 16, 2023
@erdi
Copy link

erdi commented Jul 24, 2023

FWIW, there is on more issue listed when the build fails with the above error:

Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `<redacted>` of type `org.hidetake.gradle.swagger.generator.GenerateSwaggerCode`: invocation of 'Task.project' at execution time is unsupported.

@erdi
Copy link

erdi commented Jul 24, 2023

And yet another one

- Task `<redacted>` of type `org.hidetake.gradle.swagger.generator.ResolveSwaggerTemplate`: invocation of 'Task.project' at execution time is unsupported.

@jjohannes
Copy link

These are the minimal amount of changes we needed to do to get it working: #409

(ResolveSwaggerTemplate probably also needs adjustments, I think we do not use that)

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

No branches or pull requests

3 participants