diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml
index 9e7316268bba..ddcc79376672 100644
--- a/eng/jacoco-test-coverage/pom.xml
+++ b/eng/jacoco-test-coverage/pom.xml
@@ -207,21 +207,6 @@
azure-keyvault-secrets-spring-boot-starter
2.2.5-beta.1
-
- com.microsoft.azure
- azure-spring-boot
- 2.2.5-beta.1
-
-
- com.microsoft.azure
- azure-spring-boot-starter
- 2.2.5-beta.1
-
-
- com.microsoft.azure
- azure-active-directory-spring-boot-starter
- 2.2.5-beta.1
-
com.microsoft.azure
azure-spring-boot-metrics-starter
@@ -232,41 +217,11 @@
azure-servicebus-jms-spring-boot-starter
2.2.5-beta.1
-
- com.microsoft.azure
- azure-spring-boot
- 2.2.5-beta.1
-
-
- com.microsoft.azure
- azure-spring-boot-starter
- 2.2.5-beta.1
-
-
- com.microsoft.azure
- azure-active-directory-spring-boot-starter
- 2.2.5-beta.1
-
com.microsoft.azure
azure-active-directory-b2c-spring-boot-starter
2.2.5-beta.1
-
- com.microsoft.azure
- azure-spring-boot
- 2.2.5-beta.1
-
-
- com.microsoft.azure
- azure-spring-boot-starter
- 2.2.5-beta.1
-
-
- com.microsoft.azure
- azure-active-directory-spring-boot-starter
- 2.2.5-beta.1
-
com.microsoft.azure
azure-cosmosdb-spring-boot-starter
@@ -303,6 +258,26 @@
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 3.0.0-M3
+
+
+
+
+ com.azure:*
+ com.microsoft.azure:*
+
+
+
+
+
diff --git a/eng/versioning/pom_file_version_scanner.ps1 b/eng/versioning/pom_file_version_scanner.ps1
index 48f925433eed..400fa5edc663 100644
--- a/eng/versioning/pom_file_version_scanner.ps1
+++ b/eng/versioning/pom_file_version_scanner.ps1
@@ -516,12 +516,12 @@ Get-ChildItem -Path $Path -Filter pom*.xml -Recurse -File | ForEach-Object {
if (!$includeNode.NextSibling -or $includeNode.NextSibling.NodeType -ne "Comment")
{
$script:FoundError = $true
- Write-Error-With-Color "Error: is missing the update tag which should be "
+ Write-Error-With-Color "Error: is missing the update tag which should be "
}
- elseif ($includeNode.NextSibling.Value.Trim() -notmatch "{x-include-update;(\w+)?$($groupId):$($artifactId);external_dependency}")
+ elseif ($includeNode.NextSibling.Value.Trim() -notmatch "{x-include-update;(\w+)?$($groupId):$($artifactId);(current|dependency|external_dependency)}")
{
$script:FoundError = $true
- Write-Error-With-Color "Error: version update tag for $($includeNode.InnerText) should be "
+ Write-Error-With-Color "Error: version update tag for $($includeNode.InnerText) should be "
}
else
{
@@ -539,18 +539,45 @@ Get-ChildItem -Path $Path -Filter pom*.xml -Recurse -File | ForEach-Object {
# entries in case it's an external dependency entry. Because this has already
# been validated for format, grab the group:artifact
$depKey = $includeNode.NextSibling.Value.Trim().Split(";")[1]
- if ($extDepHash.ContainsKey($depKey))
+ $depType = $includeNode.NextSibling.Value.Trim().Split(";")[2]
+ $depType = $depType.Substring(0, $depType.IndexOf("}"))
+ if ($depType -eq $DependencyTypeExternal)
{
- if ($versionWithoutBraces -ne $extDepHash[$depKey].ver)
+ if ($extDepHash.ContainsKey($depKey))
+ {
+ if ($versionWithoutBraces -ne $extDepHash[$depKey].ver)
+ {
+ $script:FoundError = $true
+ Write-Error-With-Color "Error: $($depKey)'s version is '$($versionWithoutBraces)' but the external_dependency version is listed as $($extDepHash[$depKey].ver)"
+ }
+ }
+ else
{
$script:FoundError = $true
- Write-Error-With-Color "Error: $($depKey)'s version is '$($versionWithoutBraces)' but the external_dependency version is listed as $($extDepHash[$depKey].ver)"
+ Write-Error-With-Color "Error: the groupId:artifactId entry '$($depKey)' for '$($rawIncludeText)' is not a valid external dependency. Please verify the entry exists in the external_dependencies.txt file. -->"
}
- }
+ }
else
{
- $script:FoundError = $true
- Write-Error-With-Color "Error: the groupId:artifactId entry '$($depKey)' for '$($rawIncludeText)' is not a valid external dependency. Please verify the entry exists in the external_dependencies.txt file. -->"
+ if ($depType -eq $DependencyTypeDependency)
+ {
+ if ($versionWithoutBraces -ne $libHash[$depKey].depVer)
+ {
+ return "Error: $($depKey)'s is '$($versionString)' but the dependency version is listed as $($libHash[$depKey].depVer)"
+ }
+ }
+ elseif ($depType -eq $DependencyTypeCurrent)
+ {
+ # Verify that none of the 'current' dependencies are using a groupId that starts with 'unreleased_' or 'beta_'
+ if ($depKey.StartsWith('unreleased_') -or $depKey.StartsWith('beta_'))
+ {
+ return "Error: $($versionUpdateString) is using an unreleased_ or beta_ dependency and trying to set current value. Only dependency versions can be set with an unreleased or beta dependency."
+ }
+ if ($versionWithoutBraces -ne $libHash[$depKey].curVer)
+ {
+ return "Error: $($depKey)'s is '$($versionString)' but the current version is listed as $($libHash[$depKey].curVer)"
+ }
+ }
}
}
}
diff --git a/sdk/identity/azure-identity/pom.xml b/sdk/identity/azure-identity/pom.xml
index 42c04241a56c..e2e86ccccc69 100644
--- a/sdk/identity/azure-identity/pom.xml
+++ b/sdk/identity/azure-identity/pom.xml
@@ -99,12 +99,6 @@
test
-
- com.microsoft.azure
- msal4j-persistence-extension
- 0.1
-
-
org.linguafranca.pwdb
KeePassJava2
diff --git a/sdk/spring/azure-spring-boot-starter-active-directory-b2c/pom.xml b/sdk/spring/azure-spring-boot-starter-active-directory-b2c/pom.xml
index 3b5520ed32d4..9e6eb17edab3 100644
--- a/sdk/spring/azure-spring-boot-starter-active-directory-b2c/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-active-directory-b2c/pom.xml
@@ -98,7 +98,7 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
javax.validation:validation-api:[2.0.1.Final]
org.springframework:spring-web:[5.2.5.RELEASE]
org.springframework.boot:spring-boot-starter:[2.2.0.RELEASE]
diff --git a/sdk/spring/azure-spring-boot-starter-active-directory/pom.xml b/sdk/spring/azure-spring-boot-starter-active-directory/pom.xml
index 2903847e6022..3d104750108f 100644
--- a/sdk/spring/azure-spring-boot-starter-active-directory/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-active-directory/pom.xml
@@ -82,7 +82,7 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1] -->
com.fasterxml.jackson.core:jackson-databind:[2.10.1]
com.microsoft.azure:msal4j:[1.3.0]
com.nimbusds:nimbus-jose-jwt:[7.9]
diff --git a/sdk/spring/azure-spring-boot-starter-cosmosdb/pom.xml b/sdk/spring/azure-spring-boot-starter-cosmosdb/pom.xml
index 18395ccedc3e..b5a290d9f3d2 100644
--- a/sdk/spring/azure-spring-boot-starter-cosmosdb/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-cosmosdb/pom.xml
@@ -52,7 +52,8 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
+ com.microsoft.azure:spring-data-cosmosdb:[2.2.3.FIX1]
org.springframework.boot:spring-boot-starter:[2.2.0.RELEASE]
org.springframework.boot:spring-boot-starter-validation:[2.2.0.RELEASE]
diff --git a/sdk/spring/azure-spring-boot-starter-data-gremlin/pom.xml b/sdk/spring/azure-spring-boot-starter-data-gremlin/pom.xml
index d8d10a829409..e1a87c5e0eca 100644
--- a/sdk/spring/azure-spring-boot-starter-data-gremlin/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-data-gremlin/pom.xml
@@ -56,7 +56,7 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
com.fasterxml.jackson.core:jackson-core:[2.10.1]
com.microsoft.spring.data.gremlin:spring-data-gremlin:[2.2.3]
org.springframework.boot:spring-boot-starter:[2.2.0.RELEASE]
diff --git a/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml b/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml
index 748a07582963..a087a1ad5750 100644
--- a/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml
@@ -46,7 +46,7 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
org.springframework.boot:spring-boot-starter:[2.2.0.RELEASE]
org.springframework.boot:spring-boot-starter-validation:[2.2.0.RELEASE]
diff --git a/sdk/spring/azure-spring-boot-starter-metrics/pom.xml b/sdk/spring/azure-spring-boot-starter-metrics/pom.xml
index 2251f0ddc870..527ebeda8c12 100644
--- a/sdk/spring/azure-spring-boot-starter-metrics/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-metrics/pom.xml
@@ -57,7 +57,7 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
io.micrometer:micrometer-core:[1.3.0]
io.micrometer:micrometer-registry-azure-monitor:[1.3.0]
org.springframework.boot:spring-boot-actuator-autoconfigure:[2.2.0.RELEASE]
diff --git a/sdk/spring/azure-spring-boot-starter-servicebus-jms/pom.xml b/sdk/spring/azure-spring-boot-starter-servicebus-jms/pom.xml
index 5e8ee73ed3cd..f74626292797 100644
--- a/sdk/spring/azure-spring-boot-starter-servicebus-jms/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter-servicebus-jms/pom.xml
@@ -50,16 +50,8 @@
- false
-
-
- *:*:*:*:runtime
- *:*:*:*:compile
- *:*:*:*:provided
-
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
org.apache.qpid:qpid-jms-client:[0.43.0]
org.springframework:spring-jms:[5.2.5.RELEASE]
diff --git a/sdk/spring/azure-spring-boot-starter/pom.xml b/sdk/spring/azure-spring-boot-starter/pom.xml
index bb2ce52779bd..4660eefef579 100644
--- a/sdk/spring/azure-spring-boot-starter/pom.xml
+++ b/sdk/spring/azure-spring-boot-starter/pom.xml
@@ -47,7 +47,7 @@
- com.microsoft.azure:*
+ com.microsoft.azure:azure-spring-boot:[2.2.5-beta.1]
org.springframework.boot:spring-boot-starter:[2.2.0.RELEASE]
org.springframework.boot:spring-boot-starter-validation:[2.2.0.RELEASE]