Skip to content

Commit

Permalink
Fix groupid in url for maven package published check
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Apr 6, 2022
1 parent 684d8bf commit ee183cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function IsMavenPackageVersionPublished($pkgId, $pkgVersion, $groupId)
{
try
{
$uri = "https://oss.sonatype.org/content/repositories/releases/$groupId/$pkgId/$pkgVersion/$pkgId-$pkgVersion.pom"
$uri = "https://oss.sonatype.org/content/repositories/releases/$($groupId.Replace('.', '/'))/$pkgId/$pkgVersion/$pkgId-$pkgVersion.pom"
$pomContent = Invoke-RestMethod -MaximumRetryCount 3 -RetryIntervalSec 10 -Method "GET" -uri $uri

if ($pomContent -ne $null -or $pomContent.Length -eq 0)
Expand Down

0 comments on commit ee183cd

Please sign in to comment.