Say I have a sub-project called api
which generates an api.yaml. I have another sub-project service
which has a task processApiFile
which takes in an api file in its task configuration.
What is the proper way to share this file between sub-projects using Gradle artifacts in a multi-project build? i.e. What should the build.gradle files look like to support this functionality?
.
├── api
│ ├── src
│ │ └── main
│ │ └── resources
│ │ └── api.yaml
│ └── build.gradle
├── service
│ ├── src
│ │ └── ...
│ └── build.gradle
└── settings.gradle