-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
108 lines (95 loc) · 3.4 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
val quarkusPlatformGroupId: String by project
val quarkusPlatformArtifactId: String by project
val quarkusPlatformVersion: String by project
val kotlinVersion: String = "1.9.10"
plugins {
id("io.quarkus") version "3.5.0"
kotlin("jvm") version "1.9.10"
kotlin("plugin.allopen") version "1.9.10"
kotlin("kapt") version "1.9.10"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
sourceSets {
main {
java {
setSrcDirs(
listOf("src/main/java",
"build/generated/source/kapt/main"
)
)
}
}
}
dependencies {
implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
implementation("io.quarkus:quarkus-resteasy-reactive-jackson")
implementation("io.quarkus:quarkus-hibernate-orm-panache-kotlin")
implementation("io.quarkiverse.jpastreamer:quarkus-jpastreamer:3.0.3.Final")
// kapt("com.speedment.jpastreamer:fieldgenerator-standard:3.0.4")
implementation("io.quarkus:quarkus-smallrye-openapi")
implementation("io.quarkus:quarkus-kotlin")
implementation("io.quarkus:quarkus-jdbc-mysql")
implementation("io.quarkus:quarkus-arc")
implementation("io.quarkus:quarkus-hibernate-orm")
implementation("io.quarkus:quarkus-resteasy-reactive")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
testImplementation("io.quarkus:quarkus-junit5")
// testImplementation("org.hamcrest:hamcrest:2.1")
testImplementation("io.rest-assured:rest-assured")
}
group = "com.example.markiiimark"
version = "0.0.1"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
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<KotlinCompile> {
kotlinOptions {
jvmTarget = "${JavaVersion.VERSION_11}"
// freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
javaParameters = true
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
// options.compilerArgs.add("-parameters")
}
tasks.named<Test>("test") {
useJUnitPlatform()
filter {
isFailOnNoMatchingTests = false
}
testLogging {
showExceptions = true
showStandardStreams = true
events = setOf(TestLogEvent.PASSED, TestLogEvent.FAILED)
exceptionFormat = TestExceptionFormat.FULL
}
}
//project.afterEvaluate {
// getTasksByName("quarkusGenerateCode", true).forEach { task ->
// task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>().filter { it.get().name != "processResources" })
// }
// getTasksByName("quarkusGenerateCodeDev", true).forEach { task ->
// task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>().filter { it.get().name != "processResources" })
// }
//}