I am wondering if there is any way the following can be done.
I have a project that has a structure that looks like this:
. ├── build.gradle ├── buildSrc │ ├── codegen-util │ │ └── src... │ └── codegen-tool │ └── src... ├── web-service1 │ └── src... ├── web-service2 │ └── src... └── web-service3 └── src...
codegen-tool is a used by each of the services to generate some code at build time. This all works perfectly. I’ve reached a point where the code that is generated relies on some utilities in the
Currently as part of the test step of the
codegen-tool some dummy code is generated and compiled; then I run some tests against the generated code. This all works perfectly the way I currently have things set up. What I can’t figure out how to do is add the
codegen-util library as a dependency in my web-service projects.
Is there a way I can achieve having the
codegen-util project as a dependency in both the
codegen-tool tests and the web-services?