-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
47 lines (38 loc) · 1.23 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
plugins {
kotlin("plugin.allopen")
id("io.quarkus")
}
dependencies {
implementation(enforcedPlatform(libs.quarkus.bom.get().toString()))
implementation(libs.quarkus.smallrye.graphql)
implementation(libs.quarkus.arc)
implementation(libs.quarkus.resteasy.core)
implementation(libs.bundles.quarkus.hibernate)
testImplementation(libs.quarkus.junit5.test)
// testImplementation(libs.quarkus.jacoco.test)
testImplementation(libs.rest.assured.test)
}
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")
annotation("org.eclipse.microprofile.graphql.GraphQLApi")
// annotation("jakarta.persistence.Entity")
}
tasks {
test {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}
quarkusDev {
// setSourceDir("$projectDir/src/main/kotlin")
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}