diff --git a/build.gradle.kts b/build.gradle.kts index e2dd9ec20..9b6e1780a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -176,6 +176,10 @@ allprojects { tasks { + register("cleanup") { + delete(rootDir.resolve("build")) + } + compileJava { options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000")) options.compilerArgs.add("-Xlint:all") @@ -193,6 +197,7 @@ allprojects { named("build") { dependsOn(named("shadowJar")) + finalizedBy("cleanup") } test { useJUnitPlatform()