I have a very strange behaviour using the WAR plugin and the Copy task. Please see this dummy build: https://nofile.io/f/ecejzkYnTOY/abc.tar.gz
The build is very simple and contains just one Copy task (named “abc”). It should copy the files from “$buildDir/from” into “$buildDir/dest” which are also prepared in the package. As long was the WAR plugin is commented out (which it is not in the package) everything works as expected. But as soon as the WAR plugin is active the “from” directory seems to just replace the “dest” directory.
I consider this a bug but I can’t create a thread in the Bugs forum.
The error just seems to happen as long as the .gradle directory doesn’t exist. Therefore it is easier to just use the abc.tar.gz every time you want to try it without reusing existing unpacked files.