49 lines
1.2 KiB
Groovy
49 lines
1.2 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = '1.2.41'
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
maven {
|
|
url = 'https://oss.sonatype.org/content/groups/public'
|
|
}
|
|
maven {
|
|
url = "https://plugins.gradle.org/m2/";
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.0"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
|
|
|
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
|
|
|
dependencies {
|
|
compile project(':api')
|
|
|
|
compile project(":Jankson")
|
|
|
|
compile group: 'commons-logging', name: 'commons-logging', version: '1.1.3'
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '+'
|
|
compile group: 'com.google.guava', name: 'guava', version: '+'
|
|
|
|
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: project.kotlin_version
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
classifier ''
|
|
|
|
dependencies {
|
|
include project(":api")
|
|
include project(":Jankson")
|
|
}
|
|
} |