File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,16 @@ internal fun ActionCoords.buildJars(types: String?): Jars? {
37
37
val pathWithJarContents = compileBinding(sourceFilePaths = sourceFilePaths)
38
38
val mainJarByteArrayOutputStream = ByteArrayOutputStream ()
39
39
mainJarByteArrayOutputStream.createZipFile(pathWithJarContents)
40
+ pathWithJarContents.toFile().deleteRecursively()
41
+ compilationInputDir.toFile().deleteRecursively()
40
42
mainJarByteArrayOutputStream.toByteArray()
41
43
}
42
44
43
45
val sourcesJar by lazy {
44
46
val (_, compilationInputDir) = binding.prepareDirectoryWithSources()
45
47
val sourcesJarByteArrayOutputStream = ByteArrayOutputStream ()
46
48
sourcesJarByteArrayOutputStream.createZipFile(compilationInputDir)
49
+ compilationInputDir.toFile().deleteRecursively()
47
50
sourcesJarByteArrayOutputStream.toByteArray()
48
51
}
49
52
You can’t perform that action at this time.
0 commit comments