Skip to content

Commit 2b60e3a

Browse files
authored
feat(abg): clean up temporary files after jar creation (#1617)
1 parent bc1d82e commit 2b60e3a

File tree

1 file changed

+2
-0
lines changed
  • maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding

1 file changed

+2
-0
lines changed

maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/JarBuilding.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ internal fun buildJars(
4040
val pathWithJarContents = compileBinding(sourceFilePaths = sourceFilePaths)
4141
val mainJarByteArrayOutputStream = ByteArrayOutputStream()
4242
mainJarByteArrayOutputStream.createZipFile(pathWithJarContents)
43+
pathWithJarContents.toFile().deleteRecursively()
4344

4445
val sourcesJarByteArrayOutputStream = ByteArrayOutputStream()
4546
sourcesJarByteArrayOutputStream.createZipFile(compilationInputDir)
47+
compilationInputDir.toFile().deleteRecursively()
4648

4749
return Jars(
4850
mainJar = mainJarByteArrayOutputStream.toByteArray(),

0 commit comments

Comments
 (0)