From f27bf9a153bd5e395f8c35cb553a4f730b91d310 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sun, 12 Jun 2022 18:28:13 +0200 Subject: [PATCH] fix: Don't publish root directory (Fixes #3647) --- build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) 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()