Issue:
When using OpenRewrite API, YAML recipes do not work if the .yaml
files are located in the root directory of the project. However, if the .yaml
files are placed in a subdirectory of the project, the YAML recipes work as expected.
Directory Structure:
project-root-directory
│
├── .yaml files (YAML recipes do not work)
│
├── subdirectory
│ ├── .yaml files (YAML recipes work)
│
├── src
│ ├── main
│ │ ├── java
│ │ ├── resources
│ ├── test
│
├── pom.xml
In the above directory structure, the YAML recipes do not work for the .yaml
files located directly under the project-root-directory
. However, if the .yaml
files are located under a subdirectory
within the project-root-directory
, the YAML recipes work as expected.
I have tested with DeleteKey and MergeYaml recipes. I have to change in couples of project where YAML files are located in root directory of project.