Open JotBePunkt opened 1 year ago
I have the same issue when I add org.owasp:dependency-check-gradle:8.3.1
. I also tried to force the version using:
configurations.all {
resolutionStrategy {
force("org.yaml:snakeyaml:1.33")
}
}
but it does not work anyway.
Hi, we are also affected by this issue. Any idea on how to provide a workaround until the issue has been fixed?
@Del-S If you want to force dependencies for the plugins you need to use the buildscript
block in your build.
As long as both plugins work with eg. version 1.33
you can do:
buildscript {
configurations.all {
resolutionStrategy {
force("org.yaml:snakeyaml:1.33")
}
}
}
@oalyman Thank you for the workaround. This works for me for now :)
@oalyman Oh yeah right. I forgot I was working with plugins and not dependencies. Thank you. :)
Well I tried it and it does not work for me. But I can disable the OWASP plugin so I did that. Thanks anyway.
I believe this is fixed in #15644, as swagger-parser uses the snakeyaml 2.0 since 2.1.13.
We just need to wait for a new release :)
Bug Report Checklist
Description
When using the latest gradle plugin (6.6.0) together with another plugin that uses snake yaml 2.0, the following error message occurs:
openapi-generator version
6.6.0
OpenAPI declaration file content or url
(not relevant)
Generation Details
Example build.gradle:
with this configuration, the build has the following dependencies: (using
gradle buildEnvironment
without the jib plugin, the following buildEnvironment is created:
Steps to reproduce
run
gradle openApiGenerate
in a project with theRelated issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/15192
Suggest a Fix