summaryrefslogtreecommitdiff
path: root/kobalt
diff options
context:
space:
mode:
authorCedric Beust <cedric@beust.com>2017-03-05 06:41:41 -0800
committerCedric Beust <cedric@beust.com>2017-03-05 06:41:41 -0800
commit749044426d441837fd1f16cfcc24ffd5ec0e4b10 (patch)
tree2293032f835e95dbc188956987ac487d21035438 /kobalt
parent9204d90557da604b203b6d5317b8067d8d0312c5 (diff)
downloadjcommander-749044426d441837fd1f16cfcc24ffd5ec0e4b10.tar.gz
Compile JCommander with 1.7.
TestNG depends on it, so that's necessary.
Diffstat (limited to 'kobalt')
-rw-r--r--kobalt/src/Build.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt
index 4a58f6a..965e1a9 100644
--- a/kobalt/src/Build.kt
+++ b/kobalt/src/Build.kt
@@ -1,5 +1,5 @@
-
+import com.beust.kobalt.plugin.java.javaCompiler
import com.beust.kobalt.plugin.packaging.assemble
import com.beust.kobalt.plugin.publish.bintray
import com.beust.kobalt.project
@@ -29,6 +29,10 @@ val jcommander = project {
sign = true
}
+ javaCompiler {
+ args("-target", "1.7", "-source", "1.7")
+ }
+
pom = Model().apply {
name = project.name
description = "Command line parsing"