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

Support for merging YAML files #545

Closed
musketyr opened this issue Feb 4, 2020 · 2 comments · Fixed by #1169
Closed

Support for merging YAML files #545

musketyr opened this issue Feb 4, 2020 · 2 comments · Fixed by #1169

Comments

@musketyr
Copy link

musketyr commented Feb 4, 2020

It would be nice to have a support for dumb merging YAML files:

YAML files can consist of multiple parts separated by --- so what we need is just a AppendingTransformer which would append new line and ---

see https://github.com/johnrengelman/shadow/blob/master/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/AppendingTransformer.groovy#L53

@musketyr
Copy link
Author

musketyr commented Feb 4, 2020

as a current workaround is

  1. start each file to be merged with ---
  2. use text appender for the files e.g. append 'application.yml'

this obviously works only if you have full control of the YAML files

@musketyr
Copy link
Author

thanks you

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