Skip to content

Commit 4d5a161

Browse files
authored
Point out how to set configuration options for kotlin kapt in Gradle (#72)
1 parent 4e6722c commit 4d5a161

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mapstruct-kotlin-gradle/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ dependencies {
2222
testImplementation("org.assertj:assertj-core:3.11.1")
2323
}
2424

25+
26+
kapt {
27+
arguments {
28+
// Set Mapstruct Configuration options here
29+
// https://kotlinlang.org/docs/reference/kapt.html#annotation-processor-arguments
30+
// https://mapstruct.org/documentation/stable/reference/html/#configuration-options
31+
// arg("mapstruct.defaultComponentModel", "spring")
32+
}
33+
}
34+
2535
tasks.withType<KotlinCompile> {
2636
kotlinOptions.jvmTarget = "1.8"
2737
}

0 commit comments

Comments
 (0)