55 lines
1.2 KiB
Groovy
55 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.2.70'
|
|
id 'com.github.johnrengelman.shadow' version '2.0.4'
|
|
|
|
}
|
|
|
|
group 'nl.voidcorp.yeetbot'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
jcenter()
|
|
maven { url "https://dl.bintray.com/kotlin/ktor" }
|
|
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
compile 'net.dv8tion:JDA:3.7.1_421'
|
|
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
|
|
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
|
|
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.11.1'
|
|
compile 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
compile "io.ktor:ktor-server-jetty:0.9.4"
|
|
compile "io.ktor:ktor-freemarker:0.9.4"
|
|
|
|
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
shadowJar {
|
|
baseName = 'YeetBot'
|
|
classifier = null
|
|
version = null
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'nl.voidcorp.yeetbot.YeetKt'
|
|
}
|
|
}
|
|
kotlin {
|
|
experimental {
|
|
coroutines "enable"
|
|
}
|
|
} |