diff --git a/sdk/spring/azure-spring-boot-test-aad/pom.xml b/sdk/spring/azure-spring-boot-test-aad/pom.xml
index 787208560b2d4..dc770ae228dc1 100644
--- a/sdk/spring/azure-spring-boot-test-aad/pom.xml
+++ b/sdk/spring/azure-spring-boot-test-aad/pom.xml
@@ -3,10 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.3.3.RELEASE
+
4.0.0
@@ -28,7 +28,6 @@
org.springframework.boot
spring-boot-starter-test
- 2.3.3.RELEASE
test
@@ -39,21 +38,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M3
-
-
-
-
- com.microsoft.azure:azure-active-directory-spring-boot-starter:[2.4.0-beta.1]
- org.springframework.boot:spring-boot-starter-web:[2.3.3.RELEASE]
-
-
-
-
-
org.apache.maven.plugins
maven-failsafe-plugin
diff --git a/sdk/spring/azure-spring-boot-test-core/pom.xml b/sdk/spring/azure-spring-boot-test-core/pom.xml
index 495aa167b802a..d4777fa286f59 100644
--- a/sdk/spring/azure-spring-boot-test-core/pom.xml
+++ b/sdk/spring/azure-spring-boot-test-core/pom.xml
@@ -3,10 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.3.3.RELEASE
+
4.0.0
@@ -19,7 +19,6 @@
org.springframework.boot
spring-boot
- 2.3.3.RELEASE
org.springframework
@@ -29,7 +28,6 @@
org.springframework.boot
spring-boot-starter-web
- 2.3.3.RELEASE
org.apache.maven
@@ -84,37 +82,4 @@
2.4.0-beta.1
-
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M3
-
-
-
-
- com.microsoft.azure:azure:[1.34.0]
- com.microsoft.azure:azure-spring-boot-starter:[2.4.0-beta.1]
- com.jcraft:jsch:[0.1.54]
- com.github.cverges.expect4j:expect4j:[1.6]
- org.apache.maven:maven-embedder:[3.6.2]
- org.apache.maven:maven-compat:[3.6.2]
- org.apache.maven.wagon:wagon-http:[3.3.4]
- org.apache.maven.wagon:wagon-provider-api:[3.3.4]
- org.eclipse.aether:aether-connector-basic:[1.1.0]
- org.eclipse.aether:aether-transport-wagon:[1.1.0]
- org.springframework.boot:spring-boot:[2.3.3.RELEASE]
- org.springframework.boot:spring-boot-starter-web:[2.3.3.RELEASE]
- org.springframework:spring-context:[5.2.8.RELEASE]
-
-
-
-
-
-
-
-
-
diff --git a/sdk/spring/azure-spring-boot-test-cosmosdb/pom.xml b/sdk/spring/azure-spring-boot-test-cosmosdb/pom.xml
index dc244b8da17d3..8d93df7eaa116 100644
--- a/sdk/spring/azure-spring-boot-test-cosmosdb/pom.xml
+++ b/sdk/spring/azure-spring-boot-test-cosmosdb/pom.xml
@@ -3,10 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.3.3.RELEASE
+
4.0.0
@@ -28,18 +28,15 @@
org.springframework.boot
spring-boot-starter-test
- 2.3.3.RELEASE
test
org.springframework.boot
spring-boot-starter-actuator
- 2.3.3.RELEASE
org.springframework.boot
spring-boot-starter-web
- 2.3.3.RELEASE
@@ -49,22 +46,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M3
-
-
-
-
- com.microsoft.azure:azure-cosmosdb-spring-boot-starter:[2.4.0-beta.1]
- org.springframework.boot:spring-boot-starter-web:[2.3.3.RELEASE]
- org.springframework.boot:spring-boot-starter-actuator:[2.3.3.RELEASE]
-
-
-
-
-
org.apache.maven.plugins
maven-failsafe-plugin
diff --git a/sdk/spring/azure-spring-boot-test-keyvault/pom.xml b/sdk/spring/azure-spring-boot-test-keyvault/pom.xml
index 12753f11f2be7..07bec4e7f4d08 100644
--- a/sdk/spring/azure-spring-boot-test-keyvault/pom.xml
+++ b/sdk/spring/azure-spring-boot-test-keyvault/pom.xml
@@ -3,10 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.3.3.RELEASE
+
4.0.0
@@ -18,18 +18,15 @@
org.springframework.boot
spring-boot-starter-test
- 2.3.3.RELEASE
test
org.springframework.boot
spring-boot-starter-actuator
- 2.3.3.RELEASE
org.springframework.boot
spring-boot-starter-web
- 2.3.3.RELEASE
com.microsoft.azure
@@ -64,23 +61,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M3
-
-
-
-
- com.microsoft.azure:azure:[1.34.0]
- com.microsoft.azure:azure-keyvault-secrets-spring-boot-starter:[2.4.0-beta.1]
- org.springframework.boot:spring-boot-starter-actuator:[2.3.3.RELEASE]
- org.springframework.boot:spring-boot-starter-web:[2.3.3.RELEASE]
-
-
-
-
-
org.apache.maven.plugins
maven-failsafe-plugin
diff --git a/sdk/spring/azure-spring-boot-test-servicebus-jms/pom.xml b/sdk/spring/azure-spring-boot-test-servicebus-jms/pom.xml
index 627e96e5044d1..95a50cbbef751 100644
--- a/sdk/spring/azure-spring-boot-test-servicebus-jms/pom.xml
+++ b/sdk/spring/azure-spring-boot-test-servicebus-jms/pom.xml
@@ -3,10 +3,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.3.3.RELEASE
+
com.azure
@@ -28,7 +28,6 @@
org.springframework.boot
spring-boot-starter-test
- 2.3.3.RELEASE
test
@@ -41,20 +40,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M3
-
-
-
-
- com.microsoft.azure:azure-servicebus-jms-spring-boot-starter:[2.4.0-beta.1]
-
-
-
-
-
org.apache.maven.plugins
maven-failsafe-plugin
diff --git a/sdk/spring/scripts/replace_util.py b/sdk/spring/scripts/replace_util.py
index 50895119fa79d..a963cd22cfa38 100644
--- a/sdk/spring/scripts/replace_util.py
+++ b/sdk/spring/scripts/replace_util.py
@@ -26,14 +26,34 @@
}
},
'spring': {
+ 'sdk/spring/azure-spring-boot-test-core/pom.xml': {
+ VERSION_UPDATE_ITEMS: (
+ VersionUpdateItem('org.springframework.boot:spring-boot-starter-parent', '2.2.9.RELEASE'),
+ )
+ },
+ 'sdk/spring/azure-spring-boot-test-aad/pom.xml': {
+ VERSION_UPDATE_ITEMS: (
+ VersionUpdateItem('org.springframework.boot:spring-boot-starter-parent', '2.2.9.RELEASE'),
+ )
+ },
+ 'sdk/spring/azure-spring-boot-test-application/pom.xml': {
+ VERSION_UPDATE_ITEMS: (
+ VersionUpdateItem('org.springframework.boot:spring-boot-starter-parent', '2.2.9.RELEASE'),
+ )
+ },
'sdk/spring/azure-spring-boot-test-cosmosdb/pom.xml': {
- ARTIFACT_ID_PAIRS: (
- ArtifactIdPair('azure-cosmosdb-spring-boot-2-3-starter', 'azure-cosmosdb-spring-boot-2-2-starter'),
- ),
VERSION_UPDATE_ITEMS: (
- VersionUpdateItem('org.springframework.boot:spring-boot-starter-web', '2.2.9.RELEASE'),
- VersionUpdateItem('org.springframework.boot:spring-boot-starter-actuator', '2.2.9.RELEASE'),
- VersionUpdateItem('org.springframework.boot:spring-boot-starter-test', '2.2.9.RELEASE')
+ VersionUpdateItem('org.springframework.boot:spring-boot-starter-parent', '2.2.9.RELEASE'),
+ )
+ },
+ 'sdk/spring/azure-spring-boot-test-keyvault/pom.xml': {
+ VERSION_UPDATE_ITEMS: (
+ VersionUpdateItem('org.springframework.boot:spring-boot-starter-parent', '2.2.9.RELEASE'),
+ )
+ },
+ 'sdk/spring/azure-spring-boot-test-servicebus-jms/pom.xml': {
+ VERSION_UPDATE_ITEMS: (
+ VersionUpdateItem('org.springframework.boot:spring-boot-starter-parent', '2.2.9.RELEASE'),
)
}
}
diff --git a/sdk/spring/tests.yml b/sdk/spring/tests.yml
index de0904c206cdb..a298e4d836096 100644
--- a/sdk/spring/tests.yml
+++ b/sdk/spring/tests.yml
@@ -46,3 +46,43 @@ jobs:
AAD_SINGLE_TENANT_CLIENT_SECRET: $(java-spring-aad-single-tenant-secret)
AAD_SINGLE_TENANT_CLIENT_ID_WITH_ROLE: $(java-spring-aad-single-tenant-id-with-role)
AAD_SINGLE_TENANT_CLIENT_SECRET_WITH_ROLE: $(java-spring-aad-single-tenant-secret-with-role)
+
+ PostRunSteps:
+ - script: |
+ python --version
+ python -m pip install setuptools termcolor in_place
+ python sdk/spring/scripts/replace_util.py --module spring --log debug --color false
+ displayName: 'Run replace_util.py'
+
+ - task: Maven@3
+ displayName: 'Build and Install again, JDK Version: $(JavaBuildVersion)'
+ inputs:
+ mavenPomFile: pom.xml
+ goals: 'install'
+ options: '$(DefaultOptions) -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am'
+ mavenOptions: '$(MemoryOptions) $(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: $(JavaBuildVersion)
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+
+ - task: Maven@3
+ displayName: 'Run tests again, JDK Version: $(JavaBuildVersion)'
+ inputs:
+ mavenPomFile: pom.xml
+ goals: verify
+ options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -DskipSpringITs=false -pl $(ProjectList)'
+ env:
+ AZURE_TEST_MODE: LIVE
+ AAD_TENANT_ID_1: $(java-spring-aad-tenant-id-1)
+ AAD_USER_NAME_1: $(java-spring-aad-user-name-1)
+ AAD_USER_PASSWORD_1: $(java-spring-aad-user-password-1)
+ AAD_TENANT_ID_2: $(java-spring-aad-tenant-id-2)
+ AAD_USER_NAME_2: $(java-spring-aad-user-name-2)
+ AAD_USER_PASSWORD_2: $(java-spring-aad-user-password-2)
+ AAD_MULTI_TENANT_CLIENT_ID: $(java-spring-aad-multi-tenant-client-id)
+ AAD_MULTI_TENANT_CLIENT_SECRET: $(java-spring-aad-multi-tenant-client-secret)
+ AAD_SINGLE_TENANT_CLIENT_ID: $(java-spring-aad-single-tenant-id)
+ AAD_SINGLE_TENANT_CLIENT_SECRET: $(java-spring-aad-single-tenant-secret)
+ AAD_SINGLE_TENANT_CLIENT_ID_WITH_ROLE: $(java-spring-aad-single-tenant-id-with-role)
+ AAD_SINGLE_TENANT_CLIENT_SECRET_WITH_ROLE: $(java-spring-aad-single-tenant-secret-with-role)