Skip to content

Commit 654872f

Browse files
authored
Revert "Gradle version change from AGP 7.4.2 to 8.1.1, Fixes AB#2779502" (#2651)
Reverts #2587 Reverting since the builds are failing after this change. Fixes [AB#2779502](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/2779502)
1 parent 63f5f77 commit 654872f

File tree

20 files changed

+44
-95
lines changed

20 files changed

+44
-95
lines changed

LabApiUtilities/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id 'java-library'
33
id 'maven-publish'
4-
id 'com.microsoft.identity.buildsystem' version '0.2.5'
4+
id 'com.microsoft.identity.buildsystem' version '0.2.3'
55

66
// the below build plugin allows to generate BuildConfig files in a JAVA gradle project.
77
// BuildConfig files are generated by default in an Android project, however, a non-Android java

azure-pipelines/pull-request-validation/build-consumers.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ stages:
125125
displayName: Assemble msal
126126
inputs:
127127
jdkArchitecture: x64
128-
jdkVersionOption: "1.17"
128+
jdkVersionOption: "1.11"
129129
tasks: clean msal:assembleLocal
130130
- template: ../templates/steps/automation-cert.yml
131131
- task: Gradle@3
132132
displayName: Run msal Unit tests
133133
inputs:
134134
tasks: msal:testLocalDebugUnitTest -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PmockApiUrl=$(MOCK_API_URL)
135135
jdkArchitecture: x64
136-
jdkVersionOption: "1.17"
136+
jdkVersionOption: "1.11"
137137
# broker
138138
- job: brokerValidation
139139
displayName: Broker
@@ -171,13 +171,13 @@ stages:
171171
tasks: AADAuthenticator:clean AADAuthenticator:assembleLocal --build-cache --info
172172
publishJUnitResults: false
173173
jdkArchitecture: x64
174-
jdkVersionOption: "1.17"
174+
jdkVersionOption: "1.11"
175175
- task: Gradle@3
176176
displayName: Run broker Unit tests
177177
inputs:
178178
tasks: AADAuthenticator:localDebugAADAuthenticatorUnitTestCoverageReport --build-cache --info -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PpowerLiftApiKey=$(powerliftApiKey) -PcodeCoverageEnabled=true ${{variables.shouldSkipLongRunningTest}}
179179
jdkArchitecture: x64
180-
jdkVersionOption: "1.17"
180+
jdkVersionOption: "1.11"
181181
# Linux broker
182182
- job: linuxBrokerValidation
183183
displayName: Linux Broker
@@ -226,7 +226,6 @@ stages:
226226
tasks: LinuxBroker:clean LinuxBroker:assemble --build-cache --info
227227
publishJUnitResults: false
228228
jdkArchitecture: x86
229-
jdkVersionOption: "1.17"
230229
- task: Bash@3
231230
displayName: Execute tests
232231
inputs:
@@ -278,10 +277,10 @@ stages:
278277
inputs:
279278
tasks: clean adal:assembleLocal
280279
jdkArchitecture: x64
281-
jdkVersionOption: "1.17"
280+
jdkVersionOption: "1.11"
282281
- task: Gradle@3
283282
displayName: Run adal Unit tests
284283
inputs:
285284
tasks: adal:testLocalDebugUnitTest -Plabtest -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PlabSecret=$(LabVaultAppCert)
286285
jdkArchitecture: x64
287-
jdkVersionOption: "1.17"
286+
jdkVersionOption: "1.11"

azure-pipelines/pull-request-validation/common.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
displayName: Assemble Local
3939
inputs:
4040
javaHomeSelection: JDKVersion
41-
jdkVersionOption: "1.17"
41+
jdkVersionOption: "1.11"
4242
tasks: clean common:assembleLocal
4343
publishJUnitResults: false
4444
jdkArchitecture: x64
@@ -48,14 +48,14 @@ jobs:
4848
displayName: Run Unit tests
4949
inputs:
5050
javaHomeSelection: JDKVersion
51-
jdkVersionOption: "1.17"
51+
jdkVersionOption: "1.11"
5252
tasks: common:testLocalDebugUnitTest -PlabSecret=$(LabVaultAppCert) -PmockApiUrl=$(MOCK_API_URL)
5353
- task: Gradle@3
5454
displayName: Check Dependencies size
5555
condition: eq(variables['system.pullRequest.targetBranch'], 'dev')
5656
inputs:
5757
tasks: common:dependenciesSizeCheck -PdependenciesSizeCheckConfig=distReleaseRuntimeClasspath
58-
jdkVersionOption: "1.17"
58+
jdkVersionOption: "1.11"
5959

6060
- job: spotbugs
6161
displayName: SpotBugs
@@ -68,7 +68,6 @@ jobs:
6868
- template: ../templates/steps/spotbugs.yml
6969
parameters:
7070
project: common
71-
7271
- job: lint
7372
displayName: Lint
7473
cancelTimeoutInMinutes: 1
@@ -88,5 +87,5 @@ jobs:
8887
tasks: clean common:lintLocalDebug
8988
publishJUnitResults: false
9089
javaHomeSelection: JDKVersion
91-
jdkVersionOption: "1.17"
90+
jdkVersionOption: "1.11"
9291
...

azure-pipelines/pull-request-validation/common4j.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
inputs:
3232
cwd: $(Build.SourcesDirectory)/common-java-root
3333
tasks: clean common4j:assemble
34-
javaHomeOption: JDKVersion
35-
jdkVersionOption: 1.17
3634
- template: ../templates/steps/spotbugs.yml
3735
parameters:
3836
project: common4j
@@ -43,6 +41,4 @@ jobs:
4341
inputs:
4442
cwd: $(Build.SourcesDirectory)/common-java-root
4543
tasks: common4j:test -Psugar=true -PmockApiUrl=$(MOCK_API_URL)
46-
javaHomeOption: JDKVersion
47-
jdkVersionOption: 1.17
4844
...

azure-pipelines/pull-request-validation/lab-utilities.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
inputs:
3232
cwd: $(Build.SourcesDirectory)/common-java-root
3333
tasks: LabApiUtilities:clean LabApiUtilities:assemble
34-
javaHomeSelection: JDKVersion
35-
jdkVersionOption: "1.17"
3634
- template: ../templates/steps/spotbugs.yml
3735
parameters:
3836
project: LabApiUtilities
@@ -43,6 +41,4 @@ jobs:
4341
inputs:
4442
cwd: $(Build.SourcesDirectory)/common-java-root
4543
tasks: LabApiUtilities:test -Psugar=true -PlabSecret=$(LabVaultAppCert)
46-
javaHomeSelection: JDKVersion
47-
jdkVersionOption: "1.17"
4844
...

azure-pipelines/templates/steps/continuous-delivery/assemble-publish-projversion.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ steps:
3737
displayName: Assemble ${{ parameters.project }} ${{ parameters.variant }}
3838
inputs:
3939
javaHomeSelection: JDKVersion
40-
jdkVersionOption: "1.17"
40+
jdkVersionOption: "1.11"
4141
tasks: '${{ parameters.project }}:clean ${{ parameters.project }}:assemble${{ parameters.variant }} ${{ parameters.buildArguments }}'
4242
- task: Gradle@2
4343
displayName: Publish
4444
inputs:
4545
javaHomeSelection: JDKVersion
46-
jdkVersionOption: "1.17"
46+
jdkVersionOption: "1.11"
4747
tasks: '${{ parameters.project }}:publish${{ parameters.variant }} ${{ parameters.buildArguments }}'
4848
- task: Gradle@2
4949
displayName: Run unit tests
5050
inputs:
5151
javaHomeSelection: JDKVersion
52-
jdkVersionOption: "1.17"
52+
jdkVersionOption: "1.11"
5353
tasks: '${{ parameters.project }}:test${{ parameters.variant }} -PlabSecret=$(LabVaultAppCert)'
5454
- ${{ if ne(parameters.artifactFolder, '') }}:
5555
- task: CopyFiles@2

azure-pipelines/templates/steps/spotbugs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ parameters:
1010
default: CodeAnalysisLogs
1111
- name: cwd
1212
default: $(Build.SourcesDirectory)
13-
- name: javaVersion
14-
default: "1.17"
13+
1514
steps:
1615
- task: Gradle@3
1716
displayName: 'Run Spotbugs'
1817
inputs:
1918
javaHomeSelection: JDKVersion
20-
jdkVersionOption: ${{parameters.javaVersion}}
19+
jdkVersionOption: "1.11"
2120
jdkArchitecture: x64
2221
cwd: ${{ parameters.cwd }}
2322
tasks: ${{ parameters.project }}:${{ parameters.spotbugsCommand }}

changelog.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Version 21.0.0
2323
- [PATCH] Fix multiple prompts issue in cross cloud request (#2599)
2424
- [PATCH] Corrected error handling in cross cloud scenario (#2602)
2525
- [MINOR] Native auth: Add claimsRequest also to getAccessToken and signIn after signUp/SSPR flows (#2622)
26-
- [MINOR] Upgrading AGP Version to 8.1.1 (#2587)
2726

2827
Version 20.1.1
2928
----------

common-java-root/gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ org.gradle.daemon=true
1010

1111
# See https://stackoverflow.com/questions/56075455/expiring-daemon-because-jvm-heap-space-is-exhausted
1212
# we must make sure that the total size is <7G, as that's the RAM size of VM on the build pipeline.
13-
# MaxMetaspaceSize replaced MaxPermSize as of java 8+.https://www.oracle.com/java/technologies/javase/8-whats-new.html
14-
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError
13+
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError
1514

1615
# This the TSL versionName...
1716
versionName=1.5.9
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
4-
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
54
zipStoreBase=GRADLE_USER_HOME
65
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)