Commit 3493132
committed
Avoid eagerly resolving the configuration
Calling task.source.isEmpty does some sort of eager resolution of
the configurations that were added to the task source. This in
turn can trigger other actions within Gradle and cause weird
behaviour (in our case, it caused other plugins to get applied
and eventually tripped a mutation guard.
The wire rootset code has a isEmpty flag it keeps which, according
to the comments, is there explicitly to avoid resolving the
configuration, so we can use that instead.1 parent cb4cfd7 commit 3493132
File tree
1 file changed
+6
-1
lines changed- wire-gradle-plugin/src/main/kotlin/com/squareup/wire/gradle
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
195 | | - | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
0 commit comments