Adding Unleash Auto-Configuration
Added an auto-configuration for Unleash feature toggles that works either with properties or a provided UnleashConfig bean. This works on the latest 7.0.0 Unleash Java client release.
The Unleash client is under Apache 2.0 license, so I belief this should work together with the Spring Boot Apache 2.0 license.
Created tests to make sure everything works as intended.
I didn't really find a place for documentation. If I overlooked it, please advice and I'll add some documentation around this feature. In general it's based on the clients config options.
Comment From: pivotal-cla
@mxsb Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@mxsb Thank you for signing the Contributor License Agreement!
Comment From: scottfrederick
@mxsb Have you considered creating a stand-alone Spring Boot starter project that contains this auto-configuration, instead of adding it to Spring Boot? As a separate project, it could be maintained and released independent of the Spring Boot release cycle and you could contribute to it without needing to submit PRs to this project. We maintain a list of stand-alone starters here.
Comment From: mxsb
Hey @scottfrederick I've not considered a starter so far. Would you recommend to create a starter instead of creating an auto config in the core project? I hope that this does not require a lot of maintenance, but let me know your thoughts. Happy to create a starter if you don't want to include it into the core project.
Comment From: wilkinsona
I agree with Scott. I think it would be better to maintain this outside of the main Spring Boot repository, either within the Unleash organisation or as a separate third-party project. Thanks for being part of the Spring community, @mxsb.