Clean things
This commit is contained in:
parent
aaa7a63bfb
commit
7fc979053e
3
pom.xml
3
pom.xml
@ -49,6 +49,9 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
||||||
|
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
package starter
|
package starter
|
||||||
|
|
||||||
import com.electronwill.nightconfig.core.Config as NightConfig
|
|
||||||
import com.electronwill.nightconfig.core.file.FileConfig
|
import com.electronwill.nightconfig.core.file.FileConfig
|
||||||
|
import com.electronwill.nightconfig.core.Config as NightConfig
|
||||||
|
|
||||||
data class StarterConfig(val dependencies: List<Dependency>, val inputs: List<Input>)
|
data class StarterConfig(val dependencies: List<Dependency>, val inputs: List<Input>)
|
||||||
|
|
||||||
@ -23,8 +23,6 @@ class Server(private val views: Views, private val conf: StarterConfig) {
|
|||||||
conf.inputs.find { it.name == name }!!.copy(value = value.first())
|
conf.inputs.find { it.name == name }!!.copy(value = value.first())
|
||||||
}
|
}
|
||||||
|
|
||||||
println()
|
|
||||||
|
|
||||||
val generatedPom = views.pom(deps, inputs)
|
val generatedPom = views.pom(deps, inputs)
|
||||||
ctx.result(prettyPrintXml(generatedPom))
|
ctx.result(prettyPrintXml(generatedPom))
|
||||||
ctx.contentType("text/xml")
|
ctx.contentType("text/xml")
|
||||||
@ -3,7 +3,6 @@ package starter
|
|||||||
import com.mitchellbosecke.pebble.PebbleEngine
|
import com.mitchellbosecke.pebble.PebbleEngine
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import java.io.StringWriter
|
import java.io.StringWriter
|
||||||
import java.util.logging.LogManager
|
|
||||||
|
|
||||||
private fun PebbleEngine.render(name: String, args: Map<String, Any?> = mapOf()): String {
|
private fun PebbleEngine.render(name: String, args: Map<String, Any?> = mapOf()): String {
|
||||||
val template = getTemplate(name)
|
val template = getTemplate(name)
|
||||||
@ -1,4 +1,7 @@
|
|||||||
<build>
|
<build>
|
||||||
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
||||||
|
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
{% include "starter/plugins/@default" %}
|
{% include "starter/plugins/@default" %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user