You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The project using openapi is used to automatically generate the client REST API code as an inner gradle project. the generated build.gradle generates the sourcesets as:
I'll try and look tonight. I thought I'd changed everything in those generators, but maybe I missed some.
The issue is that we're using file separator in path constructs, when that's not a safe assumption in all cases. In some locations, we're doing things like "src/main" +File.separator. which causes the above behavior.
Bug Report Checklist
Description
The project using openapi is used to automatically generate the client REST API code as an inner gradle project. the generated build.gradle generates the sourcesets as:
When building from Windows, this causing the build to fail with
The only way to fix would be to manually modify this file and build again, or to go back a version.
Expected output:
openapi-generator version
"org.openapi.generator" version "4.3.1" workaround to use "org.openapi.generator" version "4.3.0"
OpenAPI declaration file content or url
Content of yaml is irrelevant to the issue
Generation Details
Java based Gradle project run with openapi-generator to create REST service
build.gradle:
Steps to reproduce
run gradlew build from command line on a windows machine with the above in the configuration files
Related issues/PRs
could not find any related issues
The text was updated successfully, but these errors were encountered: