Commit e6d4e80
committed
Fix publishing config
tasks.withType<AbstractPublishToMaven>().configureEach { ... }
runs the lambda when each matching task is created.
The nmcp plugin creates publishKotlinFakerBomPublicationToNmcpRepository
but doesn't bind the publication property immediately — it's set later.
Eagerly calling publication.name during configuration hit the null.
Moving it into onlyIf defers it to execution time, when the publication is guaranteed to be set.1 parent 6e0e212 commit e6d4e80
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| |||
0 commit comments