PropertySource for application.yml is not found #10593
Unanswered
kgoutham93
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
micronaut version: 3.9.7
Discovered environments: k8s, ec2, cloud
application.yml
is present insrc/main/resources
For some reason my
application.yml
is not loaded by micronaut. After some digging I found that YamlPropertySourceLoader.java is responsible for loading application.yml.I checked for
Yaml.class
in my shaded jar. I found couple of entries in the classpathIn 4.x.y snakeyaml is dropped as a transitive dependency, but I also added
implementation("org.yaml:snakeyaml")
to my gradle script.I don't think datafaker should effect here, but I am open for all suggestions.
EDIT
Also confirmed that datafaker is not doing anything unexpected. I could still see the same issue by removing it as a dependency.
After some more digging, YamlPropertySourceLoader is not even listed in
/META-INF/services/io.micronaut.context.env.PropertySourceLoader
. It only hasBeta Was this translation helpful? Give feedback.
All reactions