spring-cloud-consul icon indicating copy to clipboard operation
spring-cloud-consul copied to clipboard

Support Hashicorp HCL as a config format

Open spencergibb opened this issue 8 years ago • 3 comments

https://github.com/spring-projects/spring-boot/issues/4974#issuecomment-173175333

https://github.com/hashicorp/hcl

see https://github.com/spring-projects/spring-boot/issues/3558

Would bring in JSON as a config format as well.

HCL is also fully JSON compatible. That is, JSON can be used as completely valid input to a system expecting HCL. This helps makes systems interoperable with other systems.

Could be useful for folks using Spring Cloud Consul and other hashicorp tools (vault, etc...).

HCL in java https://github.com/VladRassokhin/intellij-hcl

spencergibb avatar Jan 09 '17 20:01 spencergibb

@spencergibb Hello! What do you think about adding just JSON support? When I do a little research, I found out that there not so many libraries to just serialize/deserialize HCL in Java/Kotlin. So, I think that not so much effort is needed to add JSON support rather than researching, creating, fixing libraries that support HCL. What do you think about it? We can even split this task like this:

  1. Add support of JSON using Jackson, GSON, whatever
  2. Search or create a library to support HCL
  3. Migrate JSON to HCL

aivinog1 avatar Sep 05 '20 10:09 aivinog1

https://solutionshub.epam.com/blog/post/programming-language-popularity-on-github

Although it's still not on the list of the ten most popular programming languages in the open source community, Hashicorp Configuration Language (HCL) with a 56,1% increase in popularity is the fastest-growing language according to GitHub. This is mainly due to the need to automate deployment.

spencergibb avatar Dec 15 '23 01:12 spencergibb

https://github.com/bertramdev/hcl4j

spencergibb avatar Dec 15 '23 01:12 spencergibb