-
Notifications
You must be signed in to change notification settings - Fork 6
/
settings.gradle
49 lines (44 loc) · 1.19 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
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
ext["githubUsername"] = null
ext["githubToken"] = null
def secretPropsFile = file("local.properties")
if (secretPropsFile.exists()) {
Properties properties = new Properties()
secretPropsFile.withInputStream { properties.load(it) }
properties.each { k, v -> ext[k] = v }
} else {
ext["githubUsername"] = System.getenv("GITHUB_ACTOR")
ext["githubToken"] = System.getenv("GITHUB_TOKEN")
}
def getExtraString(name) {
try {
return ext[name]
} catch (ignored) {
return ""
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenLocal()
mavenCentral()
maven {
setUrl("https://maven.pkg.github.com/hyperledger/aries-uniffi-wrappers")
credentials {
username = getExtraString("githubUsername")
password = getExtraString("githubToken")
}
}
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "aries-framework-kotlin"
include ':app'
include ':ariesframework'