Simplistic converter between yaml and java properties files.
Download the latest binary from the github releases archive
go get github.com/mgurov/yaml2props/cmd/yaml2p
go install github.com/mgurov/yaml2props/cmd/yaml2p
- multiline string values
- yaml collection of the type
key: [val1, val2, val3]
- scalars at a node with children, e.g. the following java property file won't be mapped to yaml:
level1.level2=blah
level1.level2.level3=fooe
Original key order isn't preserved, alphabetical sorting is used for the consistency sake
Java code https://stackoverflow.com/questions/49207935/how-to-convert-yml-to-properties-with-a-gradle-task
Java/maven style https://github.com/redlab/yaml-props