-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.gradle
80 lines (74 loc) · 2.65 KB
/
settings.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
def prop = { String key ->
Properties properties = new Properties()
properties.load(new File(rootDir.absolutePath + "/local.properties").newDataInputStream())
properties.containsKey(key) ? properties[key] as String : null
}
//def internalRepo = System.env.DOLBY_INTERNAL_MAVEN_URL ?: null
//def internalUser = System.env.DOLBY_INTERNAL_MAVEN_USER ?: null
//def internalPassword = System.env.DOLBY_INTERNAL_MAVEN_PASSWORD ?: null
//
//def gitUserName = System.env.GIT_USERNAME ?: getGithubUsername()
//def gitPat = System.env.GIT_PAT ?: getGithubUserPassword()
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
mavenLocal()
// maven {
// name = "GitHubPackages"
// url = uri("https://maven.pkg.github.com/millicast/maven")
// credentials {
// username = gitUserName
// logger.lifecycle("User name: ${gitUserName}")
// password = gitPat
// }
// }
//
// if (null != internalRepo && null != internalUser && null != internalPassword) {
// maven {
// name = "Snapshots"
// url = uri(internalRepo)
// credentials {
// username = internalUser
// password = internalPassword
// }
// authentication {
// digest(BasicAuthentication)
// }
// }
// }
}
}
def getGithubUsername() {
Properties properties = new Properties()
properties.load(new File(rootDir.absolutePath + "/local.properties").newDataInputStream())
def githubUserName = properties.getProperty('githubUsername', null)
if (githubUserName == null) {
throw new GradleException(
"Github username not found. Define location with githubUsername in the local.properties file")
}
return githubUserName
}
def getGithubUserPassword() {
Properties properties = new Properties()
properties.load(new File(rootDir.absolutePath + "/local.properties").newDataInputStream())
def githubUserPassword = properties.getProperty('githubPat', null)
if (githubUserPassword == null) {
throw new GradleException(
"Github PAT not found. Define location with githubPat in the local.properties file")
}
return githubUserPassword
}
rootProject.name = "rts-app-android-viewer"
include ':app'
include ':rtscomponentkit'
include ':uikit'
include ':interactiveplayer'