Skip to content

Commit 49261af

Browse files
author
ntwigg
committed
Add -Xconsistent-data-class-copy-visibility to the kotlin compile tasks.
1 parent edc577f commit 49261af

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/resources/base/kotlin.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ if (kotlin_jvmTarget != null) {
1010
}
1111
}
1212
compileKotlin {
13-
kotlinOptions.freeCompilerArgs = ["-Xjvm-default=all"]
13+
kotlinOptions.freeCompilerArgs = [
14+
"-Xjvm-default=all",
15+
"-Xconsistent-data-class-copy-visibility"
16+
]
1417
}
1518
compileTestKotlin {
16-
kotlinOptions.freeCompilerArgs = ["-Xjvm-default=all"]
19+
kotlinOptions.freeCompilerArgs = [
20+
"-Xjvm-default=all",
21+
"-Xconsistent-data-class-copy-visibility"
22+
]
1723
}

0 commit comments

Comments
 (0)