I have multi-project buld. I need all my jar be in one directory: build/New_libs What is correct definitions for that? That one created the jar under proj1/proj2/foo1/build/libs/
If I redefine the destination dir, the task clean doesn’t ‘know’ the new location. As result, the generated jar not cleaned by clean task. What is best solution for it? Can I partial override task? Or just create my new clean task?
By default, the ‘clean’ task deletes the ‘build’ directory, but it can be reconfigured as needed (see the ‘Delete’ task type in the Gradle Build Language Reference). Another option is to keep separate output directories and add another task that copies Jars into a common directory.