-
Notifications
You must be signed in to change notification settings - Fork 514
/
Copy pathbuild.gradle.kts
43 lines (33 loc) · 1.11 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
kotlin("kapt") version "1.9.10"
}
group = "org.mapstruct.examples"
version = "1.0.0-SNAPSHOT"
java.sourceCompatibility = org.gradle.api.JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.mapstruct:mapstruct:1.6.0")
kapt("org.mapstruct:mapstruct-processor:1.6.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.3.1")
testImplementation("org.assertj:assertj-core:3.11.1")
}
kapt {
arguments {
// Set Mapstruct Configuration options here
// https://kotlinlang.org/docs/reference/kapt.html#annotation-processor-arguments
// https://mapstruct.org/documentation/stable/reference/html/#configuration-options
// arg("mapstruct.defaultComponentModel", "spring")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
val test by tasks.getting(Test::class) {
useJUnitPlatform { }
}