Is there a way to create a sourceSet from another that overrides some files?
|-src/main/java
|--com/company/Logger.java
|--com/company/core/...
|--...
|
|-src/legacy/java
|--com/company/Logger.java
Given a source tree above, the core logic is in the src/main/java dir. In some cases we need to build the core but replace files from the src/legacy/java folder. Is there a way to create a new sourceSet which is src/main/java but with all the files of src/legacy/java overriding?
ie getting a sourceSet like:
|--com/company/Logger.java (from src/legacy/java)
|--com/company/core/...
|--...