1
0

Start zip output

This commit is contained in:
2020-09-10 18:48:47 +02:00
parent 69e93f4def
commit 883610878a
11 changed files with 121 additions and 31 deletions
+18
View File
@@ -0,0 +1,18 @@
package starter
import starter.utils.ZipOutput
import starter.utils.prettyPrintXml
class ProjectZip(private val templates: Templates) {
fun createZip(project: Project, inputs: List<Input>, dependencies: List<Dependency>) {
val pom = templates.pom(dependencies, inputs)
val prettyPom = prettyPrintXml(pom)
ZipOutput(project.name).use {
it.write("pom.xml", prettyPom)
}
}
}