Commit d313d38
Fix POM: write current version for project deps to avoid 'unspecified'
The publishing block in testutils and uiautomationutilities iterates
implementation dependencies to populate the generated POM. For project
deps like project(':keyvault'), it.version reads project(':keyvault').version
-- which Gradle defaults to the string 'unspecified' if that sibling
project hasn't been configured yet.
With Gradle configure-on-demand enabled, the publish task for common
may run without configuring sibling projects like :keyvault, :labapi,
:common, etc. The published POM then contained 'keyvault:unspecified',
which caused downstream consumers (AADAuthenticator distDebugUnitTest)
to fail at dependency resolution.
Fix: for project dependencies, write the current artifact's version
(getAppVersionName()) since all sibling library projects share the same
version. External dependencies still use it.version as before.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3371b7e commit d313d38
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| |||
0 commit comments