Commit f0a1dba
authored
Avoid eager getByName in pom validation plugin (opensearch-project#19974)
The `getByName()` call is eager, which means this can fail
non-deterministically if the dependent gradle tasks have not yet been
configured. I ran into this error when doing other gradle refactorings.
This change avoids the eager call while also avoiding the nested
publications.all() call.
Signed-off-by: Andrew Ross <andrross@amazon.com>1 parent 2fddcd8 commit f0a1dba
File tree
1 file changed
+2
-7
lines changed- buildSrc/src/main/java/org/opensearch/gradle/precommit
1 file changed
+2
-7
lines changedLines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 62 | + | |
| 63 | + | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
| |||
0 commit comments