From 2b60e3a1532bb03095106505cfa1f00d9831eb1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Sun, 8 Sep 2024 21:22:09 +0200 Subject: [PATCH] feat(abg): clean up temporary files after jar creation (#1617) --- .../github/typesafegithub/workflows/mavenbinding/JarBuilding.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/JarBuilding.kt b/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/JarBuilding.kt index 38a8ad7ec0..fb5a9c5f32 100644 --- a/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/JarBuilding.kt +++ b/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/JarBuilding.kt @@ -40,9 +40,11 @@ internal fun buildJars( val pathWithJarContents = compileBinding(sourceFilePaths = sourceFilePaths) val mainJarByteArrayOutputStream = ByteArrayOutputStream() mainJarByteArrayOutputStream.createZipFile(pathWithJarContents) + pathWithJarContents.toFile().deleteRecursively() val sourcesJarByteArrayOutputStream = ByteArrayOutputStream() sourcesJarByteArrayOutputStream.createZipFile(compilationInputDir) + compilationInputDir.toFile().deleteRecursively() return Jars( mainJar = mainJarByteArrayOutputStream.toByteArray(),