62 lines
1.6 KiB
Groovy
62 lines
1.6 KiB
Groovy
|
plugins {
|
||
|
id 'org.jetbrains.kotlin.jvm'
|
||
|
id "org.jetbrains.kotlin.plugin.allopen" version "1.3.72"
|
||
|
id 'io.quarkus'
|
||
|
}
|
||
|
|
||
|
|
||
|
dependencies {
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
||
|
|
||
|
// TODO: why can't Gradle find fints4k project? .jars have temporarily to be copied to libs folder - which are not committed to repo of course - till this issue is fixed
|
||
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
|
|
||
|
implementation "net.dankito.utils:java-utils:$javaUtilsVersion"
|
||
|
|
||
|
implementation "io.ktor:ktor-client-okhttp:$ktorVersion"
|
||
|
|
||
|
implementation "org.slf4j:slf4j-api:$slf4jVersion"
|
||
|
|
||
|
implementation enforcedPlatform("io.quarkus:quarkus-universe-bom:$quarkusVersion")
|
||
|
implementation 'io.quarkus:quarkus-kotlin'
|
||
|
implementation 'io.quarkus:quarkus-resteasy'
|
||
|
implementation 'io.quarkus:quarkus-resteasy-jackson'
|
||
|
|
||
|
testImplementation 'io.quarkus:quarkus-junit5'
|
||
|
testImplementation 'io.rest-assured:kotlin-extensions'
|
||
|
}
|
||
|
|
||
|
|
||
|
quarkus {
|
||
|
setOutputDirectory("$projectDir/build/classes/kotlin/main")
|
||
|
}
|
||
|
|
||
|
quarkusDev {
|
||
|
setSourceDir("$projectDir/src/main/kotlin")
|
||
|
}
|
||
|
|
||
|
allOpen {
|
||
|
annotation("javax.ws.rs.Path")
|
||
|
annotation("javax.enterprise.context.ApplicationScoped")
|
||
|
annotation("io.quarkus.test.junit.QuarkusTest")
|
||
|
}
|
||
|
|
||
|
|
||
|
def javaVersion = JavaVersion.VERSION_11
|
||
|
|
||
|
java {
|
||
|
sourceCompatibility = javaVersion
|
||
|
targetCompatibility = javaVersion
|
||
|
}
|
||
|
|
||
|
compileKotlin {
|
||
|
kotlinOptions.jvmTarget = javaVersion
|
||
|
kotlinOptions.javaParameters = true
|
||
|
}
|
||
|
|
||
|
compileTestKotlin {
|
||
|
kotlinOptions.jvmTarget = javaVersion
|
||
|
}
|
||
|
test {
|
||
|
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
|
||
|
}
|