I use two folders with java files in one project: - src/main/java - src/generated/java with api and impl packages
My result is to get separate jar files for each api and impl package of src/generated/java and one more which includes the output of src/main/java.
But i get problems because there exist dependencies from src/main/java to src/generated/java and backwards! Inside the eclipse project (without using gradle) there are no problems with the dependencies because all files are inside the same project.
I tried the following solution and it is nearly great, but with the dependencies in both directions i get errors: https://github.com/gradle/gradle/commit/146d0c5919e50d54eec8081079ef3256779e3a5e
How can i use separate source sets (api, impl, main) which know about the files of the other source sets?
Because i’m nearly new i would be grateful for an example.