48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
kotlin("plugin.allopen")
|
|
|
|
id("io.quarkus")
|
|
}
|
|
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
|
|
val quarkusVersion: String by project
|
|
|
|
dependencies {
|
|
implementation(enforcedPlatform("io.quarkus.platform:quarkus-bom:$quarkusVersion"))
|
|
implementation("io.quarkus:quarkus-kotlin")
|
|
|
|
implementation("io.quarkus:quarkus-rest")
|
|
implementation("io.quarkus:quarkus-rest-jackson")
|
|
|
|
implementation("io.quarkus:quarkus-smallrye-health")
|
|
implementation("io.quarkus:quarkus-smallrye-openapi")
|
|
implementation("io.quarkus:quarkus-micrometer")
|
|
implementation("io.quarkus:quarkus-micrometer-registry-prometheus")
|
|
|
|
|
|
testImplementation("io.quarkus:quarkus-junit5")
|
|
testImplementation("io.rest-assured:rest-assured")
|
|
}
|
|
|
|
|
|
tasks.withType<Test> {
|
|
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
|
|
}
|
|
|
|
allOpen {
|
|
annotation("jakarta.ws.rs.Path")
|
|
annotation("jakarta.enterprise.context.ApplicationScoped")
|
|
annotation("jakarta.persistence.Entity")
|
|
annotation("io.quarkus.test.junit.QuarkusTest")
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.javaParameters = true
|
|
}
|