You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
micronaut version: 3.9.7
Discovered environments: k8s, ec2, cloud application.yml is present in src/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 classpath
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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