Add missing call to hook for copy classes to clean up.
Don't use constructor DI for Copy like tasks as it breaks subclasses.
Grab the destinationDir value for these tasks before nulling out the copy action.
Test fix.
Remove attempt to free resources after copy type tasks as there is no convenient, safe, place to free them.

This requires more changes to implement safely than I am willing to make at this point in the release cycle.
Test fix.
Build with the very latest release branch code.
Merge branch 'release'

Conflicts:
	gradle/wrapper/gradle-wrapper.properties