cc40387788
"installationDir" is the non-version specific top-level Yarn installation directory simply called "yarn". Checking for its existence is not sufficient to be able to skip the task, as another version than the requested one could be installed below the "yarn" directory. Instead of taking the version into account in this check, simply remove it as the version-specific installation directory at "env.home" is already marked as an "OutputDirectory", so Gradle itself already takes care of skipping task execution if the output files were created before.