66 lines
1.6 KiB
Groovy
66 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
}
|
|
|
|
group 'nl.voidcorp.sqa'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
def ktor_version = "1.2.6"
|
|
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
implementation 'ch.qos.logback:logback-classic:1.2.3'
|
|
implementation "io.ktor:ktor-server-netty:$ktor_version"
|
|
implementation "io.ktor:ktor-server-core:$ktor_version"
|
|
implementation "io.ktor:ktor-auth:$ktor_version"
|
|
implementation "io.ktor:ktor-auth-jwt:$ktor_version"
|
|
implementation "io.ktor:ktor-jackson:$ktor_version"
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-html:0.6.12'
|
|
implementation "io.ktor:ktor-html-builder:$ktor_version"
|
|
implementation "io.ktor:ktor-websockets:$ktor_version"
|
|
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.+"
|
|
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.+"
|
|
|
|
implementation 'redis.clients:jedis:3.1.0'
|
|
|
|
testImplementation "io.ktor:ktor-server-test-host:$ktor_version"
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("passed", "skipped", "failed")
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
baseName = 'app'
|
|
classifier = ''
|
|
archiveVersion = ''
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'nl.voidcorp.sqa.MainKt'
|
|
}
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|