neoforged / MDK

The Mod Developer Kit - this is where you start if you want to develop a new mod
https://github.com/NeoForgeMDKs
189 stars 60 forks source link

Running `gradlew clean` throws an exception #22

Closed TBlueF closed 11 months ago

TBlueF commented 11 months ago

Description

Running ./gradlew clean (i am on Windows 10) on an (unmodified) MDK throws this exception:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':clean'.
> java.io.IOException: Unable to delete directory 'C:\path\to\MDK\build'
    Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
    - C:\path\to\MDK\build\tmp\.cache\expanded\expanded.lock
    - C:\path\to\MDK\build\tmp\.cache\expanded
    - C:\path\to\MDK\build\tmp\.cache
    - C:\path\to\MDK\build\tmp

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
1 actionable task: 1 executed

To reproduce, run these commands:

git clone https://github.com/neoforged/MDK.git
cd .\MDK\
.\gradlew clean
Technici4n commented 11 months ago

See https://github.com/neoforged/NeoGradle/issues/18.