mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-27 20:10:56 +00:00
feat: generate EOL in VERSION file (#17829)
The EOL is missing so let's add it in order to comply with POSIX standard: Line > A sequence of zero or more non- <newline> characters plus a terminating <newline> character.
This commit is contained in:
parent
783e68c7ac
commit
1e9bccca16
@ -1864,7 +1864,7 @@ public class DefaultGenerator implements Generator {
|
||||
if (generateMetadata) {
|
||||
File versionMetadataFile = new File(versionMetadata);
|
||||
try {
|
||||
File written = this.templateProcessor.writeToFile(versionMetadata, ImplementationVersion.read().getBytes(StandardCharsets.UTF_8));
|
||||
File written = this.templateProcessor.writeToFile(versionMetadata, (ImplementationVersion.read() + "\n").getBytes(StandardCharsets.UTF_8));
|
||||
if (written != null) {
|
||||
files.add(versionMetadataFile);
|
||||
if (config.isEnablePostProcessFile() && !dryRun) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user