Commit 475fc8a
authored
Fix opt-in usage error shown in IntelliJ IDEA for some of the project files (#4160)
* Use kotlin extension-level DSL for global args and opt-ins
Applying free compiler arguments and opt-ins only to
compilations leaves source sets that don't have any
compilations misconfigured in the IDE. This includes
shared test source sets and the special jdk8 source set.
KGP 2.0.0 introduces an extension-level DSL that sets
defaults for all source sets and provides a way to
configure them properly.
The arguments in the compilation conventions were kept.
The pure JVM compilations still need the arguments,
but they are not affected by the new multiplatform
extension DSL.
See https://youtrack.jetbrains.com/issue/KT-686421 parent 81ab2e7 commit 475fc8a
File tree
4 files changed
+22
-14
lines changed- buildSrc/src/main/kotlin
4 files changed
+22
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | | - | |
5 | 2 | | |
6 | 3 | | |
7 | 4 | | |
| |||
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 39 | | |
54 | 40 | | |
55 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
0 commit comments