The specified installation directory '/home/thufir/NetBeansProjects/gradleHelloWorld/build/install/gradleHelloWorld-shadow' is neither empty nor does it contain an installation for 'gradleHelloWorld'.
If you really want to install to this directory, delete it and run the install task again.
Alternatively, choose a different installation directory.
when I run clean that directory gets removed. Notably, the JAR built from assembleShadowDist is fine. Yet gradle cannot execute shadowJar β it crashes as above.
could you provide a little more context about your project? IIUC, something is in the /home/thufir/NetBeansProjects/gradleHelloWorld/build/install/gradleHelloWorld-shadow directory, which doesnβt seem to be an old application. It may be an empty directory, could you check?
I checked the shadow plugin, and it seems that there is already an issue open: https://github.com/johnrengelman/shadow/issues/339.
No, itβs not an old application. I made it specifically to see if itβs a bug.
The directory is empty β at least when the build finishes.
running clean will remove the problem directory. Notably, shadowJar makes the JAR fine, itβs runnable, etc. Itβs just this one task, runShadow which triggers bug 339.