mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Add javaCompiler so the wrapper can be compiled with 1.7.
This commit is contained in:
parent
84118bfd69
commit
552e3b9180
2 changed files with 31 additions and 2 deletions
|
@ -2,11 +2,13 @@ import com.beust.kobalt.*
|
|||
import com.beust.kobalt.api.License
|
||||
import com.beust.kobalt.api.Scm
|
||||
import com.beust.kobalt.internal.test
|
||||
import com.beust.kobalt.plugin.java.javaCompiler
|
||||
import com.beust.kobalt.plugin.java.javaProject
|
||||
import com.beust.kobalt.plugin.kotlin.kotlinCompiler
|
||||
import com.beust.kobalt.plugin.kotlin.kotlinProject
|
||||
import com.beust.kobalt.plugin.packaging.assemble
|
||||
import com.beust.kobalt.plugin.kotlin.kotlinCompiler
|
||||
import com.beust.kobalt.plugin.publish.jcenter
|
||||
|
||||
//import com.beust.kobalt.plugin.linecount.lineCount
|
||||
//val plugins = plugins(
|
||||
// "com.beust.kobalt:kobalt-line-count:0.15"
|
||||
|
@ -28,6 +30,10 @@ val wrapper = javaProject {
|
|||
version = readVersion()
|
||||
directory = homeDir("kotlin/kobalt/modules/wrapper")
|
||||
|
||||
javaCompiler {
|
||||
args("-source", "1.7", "-target", "1.7")
|
||||
}
|
||||
|
||||
assemble {
|
||||
jar {
|
||||
name = projectName + ".jar"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue