-
Notifications
You must be signed in to change notification settings - Fork 36
/
build.gradle
49 lines (43 loc) · 1.69 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Top-level build file where you can add configuration options common to all sub-projects/modules.
project.ext.vstsUsername = System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_USERNAME") : project.findProperty("vstsUsername")
project.ext.vstsPassword = System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_ANDROIDCOMMON_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken")
buildscript {
apply from: rootProject.file("gradle/versions.gradle")
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:${rootProject.ext.gradleVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.ext.kotlinVersion}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
/*
Order of repositories is important.
*/
repositories {
google()
mavenCentral()
// Adding here because Travis cannot access AndroidADAL feed.
maven {
url 'https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1'
}
maven {
name "vsts-maven-adal-android"
url "https://identitydivision.pkgs.visualstudio.com/_packaging/AndroidADAL/maven/v1"
credentials {
username project.vstsUsername
password project.vstsPassword
}
}
}
dependencyLocking {
lockAllConfigurations()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}