If you specify multiple environments in micronaut.environments system property, it's order is not retained in env.getActiveNames(). This results in unpredictable configuration if the same configuration key exists in multiple environments.
micronaut.environmentsjava -Dmicronaut.environments=foo,bar,foo,bar,baz -jar app.jar
cloud and ec2 environments should be automatically detectedenv.getActiveNames() should return [ 'cloud', 'ec2', 'foo', 'bar', 'baz' ]
env.getActiveNames() should returns names in arbitrary order because HashSet is used.
Thanks for the contribution
Most helpful comment
Thanks for the contribution