2020-10-18 12:56:54 +00:00
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"
2021-01-15 13:25:24 +00:00
implementation enforcedPlatform ( "io.quarkus:quarkus-bom:$quarkusVersion" )
2020-10-18 12:56:54 +00:00
implementation 'io.quarkus:quarkus-kotlin'
implementation 'io.quarkus:quarkus-resteasy'
implementation 'io.quarkus:quarkus-resteasy-jackson'
2021-01-18 13:28:44 +00:00
implementation "ch.qos.logback:logback-classic:$logbackVersion"
2020-10-18 12:56:54 +00:00
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"
}