Added source & target compatibilities.
This commit is contained in:
parent
f9f1bf76b5
commit
020db49930
2 changed files with 7 additions and 0 deletions
|
@ -52,6 +52,8 @@ def pkgLicenses = ['BSD 3-Clause']
|
|||
def pkgIssueTrackerUrl = mavenUrl + '/issues'
|
||||
def pkgLabels = ['java', 'annotation', 'processor', 'semantic', 'version']
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||
|
||||
repositories {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import com.beust.kobalt.buildScript
|
||||
import com.beust.kobalt.localMaven
|
||||
import com.beust.kobalt.plugin.java.javadoc
|
||||
import com.beust.kobalt.plugin.java.javaCompiler
|
||||
import com.beust.kobalt.plugin.packaging.assemble
|
||||
import com.beust.kobalt.plugin.packaging.install
|
||||
import com.beust.kobalt.plugin.publish.autoGitTag
|
||||
|
@ -80,6 +81,10 @@ val semver = project {
|
|||
compile("org.testng:testng:6.12")
|
||||
}
|
||||
|
||||
javaCompiler {
|
||||
args("-source", "1.8", "-target", "1.8")
|
||||
}
|
||||
|
||||
assemble {
|
||||
jar {
|
||||
//fatJar = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue