Skip to content

Commit b05e2d4

Browse files
committed
minor fixes
1 parent c135a29 commit b05e2d4

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ resources:
2828
- repository: msal
2929
type: github
3030
name: AzureAD/microsoft-authentication-library-for-android
31-
ref: fadi/mavenCentral
31+
ref: dev
3232
endpoint: ANDROID_GITHUB
3333
- repository: broker
3434
type: github
3535
name: AzureAD/ad-accounts-for-android
36-
ref: fadi/mavenCentral
36+
ref: dev
3737
endpoint: ANDROID_GITHUB
3838

3939
stages:
@@ -257,4 +257,4 @@ stages:
257257
inputs:
258258
testResultsFormat: 'JUnit'
259259
testResultsFiles: '**/TEST-*.xml'
260-
searchFolder: 'LinuxBroker'
260+
searchFolder: 'LinuxBroker'

azure-pipelines/templates/steps/spotbugs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ parameters:
1212
default: $(Build.SourcesDirectory)
1313
- name: javaVersion
1414
default: "1.17"
15-
1615
steps:
1716
- bash: |
1817
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"

azure-pipelines/templates/steps/vsts-release/vsts-release-template.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
clean: true
2626
submodules: recursive
2727
persistCredentials: True
28+
- task: CmdLine@1
29+
displayName: Set MVN Username in Environment
30+
inputs:
31+
filename: echo
32+
arguments: '##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS'
2833
- task: CmdLine@1
2934
displayName: Set MVN AccessToken in Environment
3035
inputs:

common-java-root/build.gradle

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
project.ext.vstsUsername = System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_USERNAME") : project.findProperty("vstsUsername")
3-
project.ext.vstsMavenAccessToken = System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken")
2+
project.ext.vstsUsername = System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : project.findProperty("vstsUsername")
3+
project.ext.vstsMavenAccessToken = System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken")
44

55
buildscript {
66
apply from: rootProject.file("../gradle/versions.gradle")
@@ -19,10 +19,13 @@ allprojects {
1919
Order of repositories is important.
2020
*/
2121
repositories {
22+
// If you don't have access to the package feed uncomment these repositories
23+
// mavenCentral()
24+
2225
/*
2326
This is the project main repository and contains all of the packages we publish.
2427
This azure devops feed also has an upstream to Maven Central as well as several other
25-
internal azure devops respositories
28+
internal azure devops repositories
2629
2730
NOTE: This repository is not currently available to our public CI (Travis)
2831
*/
@@ -34,13 +37,16 @@ allprojects {
3437
password project.vstsMavenAccessToken
3538
}
3639
}
40+
maven {
41+
name "vsts-maven-adal-android"
42+
url "https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1"
43+
credentials {
44+
username project.ext.vstsUsername
45+
password project.ext.vstsMavenAccessToken
46+
}
47+
}
3748
//Required for google published packages not published to maven central
3849
google()
39-
40-
/*
41-
* Required for packages published to Maven Central.
42-
*/
43-
mavenCentral()
4450
}
4551
}
4652

common-java-root/settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
pluginManagement {
22
repositories {
3+
// If you don't have access to the package feed uncomment these repositories
4+
// mavenCentral()
35
google()
4-
mavenCentral()
56
gradlePluginPortal()
67
}
78
}

0 commit comments

Comments
 (0)