Gradle Assemble Only Working Once

When executing the assemble task the jar outputs to build/libs as expected. It also generates a .gradle directory on the root directory (also as expected). Once the .gradle directory is generated the builds are still successful, but the jar no longer outputs until the .gradle directory is removed.

  • Gradle Version: 6.7.1
  • Oracle JDK: 11.0.9
  • Operating System: Windows 10 Pro (latest stable build)

I’ve narrowed the issue down purely that the drive was not NTFS (it was exFAT). If someone can explain why that’d be great but for now this is the solution.