mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
First commit
This commit is contained in:
commit
c061e7df85
102 changed files with 6717 additions and 0 deletions
42
src/main/resources/build-template.mustache
Normal file
42
src/main/resources/build-template.mustache
Normal file
|
@ -0,0 +1,42 @@
|
|||
import com.beust.kobalt.*
|
||||
import com.beust.kobalt.plugin.packaging.assemble
|
||||
{{imports}}
|
||||
|
||||
val p = {{directive}} {
|
||||
name = "{{name}}"
|
||||
group = "{{group}}"
|
||||
artifactId = name
|
||||
version = "{{version}}"
|
||||
|
||||
sourceDirectories {
|
||||
{{#sourceDirectories}}
|
||||
path("{{toString}}")
|
||||
{{/sourceDirectories}}
|
||||
}
|
||||
|
||||
sourceDirectoriesTest {
|
||||
{{#sourceDirectoriesTest}}
|
||||
path("{{toString}}")
|
||||
{{/sourceDirectoriesTest}}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// compile("com.beust:jcommander:1.48")
|
||||
{{#mainDependencies}}
|
||||
compile("{{groupId}}:{{artifactId}}:{{version}}")
|
||||
{{/mainDependencies}}
|
||||
}
|
||||
|
||||
dependenciesTest {
|
||||
// compile("org.testng:testng:6.9.5")
|
||||
{{#testDependencies}}
|
||||
compile("{{groupId}}:{{artifactId}}:{{version}}")
|
||||
{{/testDependencies}}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
val packProject = assemble(p) {
|
||||
jar {
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue