-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
72 lines (63 loc) · 2.03 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
kotlin("kapt")
kotlin("plugin.allopen")
id("io.quarkus")
}
dependencies {
// TODO
implementation(projects.libs.core)
implementation(projects.libs.model)
implementation(projects.libs.proto)
// quarkus
implementation(enforcedPlatform(libs.quarkus.bom.get().toString()))
implementation(libs.bundles.quarkus.core)
// https://smallrye.io/smallrye-mutiny/guides/kotlin
implementation(libs.quarkus.mutiny.kotlin)
// rest
implementation(libs.bundles.quarkus.resteasy)
// mapper
// FIXME: https://github.com/quarkusio/quarkus/issues/14012
implementation(libs.mapstruct.core)
kapt(libs.mapstruct.processor)
// security
implementation(libs.quarkus.oidc)
// implementation("io.quarkus:quarkus-oidc")
// grpc
implementation(libs.quarkus.grpc)
implementation(libs.grpc.kotlin.stub)
implementation(libs.bundles.kotlinx.coroutines)
// tooling
implementation(libs.bundles.quarkus.tools)
// deployment
implementation(libs.bundles.quarkus.deployment)
// testing
testImplementation(libs.quarkus.junit5.test)
testImplementation(libs.rest.assured.kotlin.test)
testImplementation(testFixtures(projects.libs.proto))
}
affectedTestConfiguration { jvmTestTask = "check" }
quarkus {
// setOutputDirectory("$projectDir/build/classes/kotlin/main")
}
allOpen {
// NOTE: add all classes' annotations that need need hot-reload
annotation("javax.ws.rs.Path")
annotation("javax.enterprise.context.ApplicationScoped")
annotation("io.quarkus.test.junit.QuarkusTest")
}
tasks {
test {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}
quarkusDev {
// setSourceDir("$projectDir/src/main/kotlin")
// You can change the working directory
// HINT: config/certs are at project root
// workingDir = rootDir.absolutePath
}
buildNative {
// isEnableHttpUrlHandler = true
// isEnableHttpsUrlHandler = true
// dockerBuild = "true"
}
}