-
Notifications
You must be signed in to change notification settings - Fork 817
/
settings.gradle.kts
52 lines (47 loc) · 1.3 KB
/
settings.gradle.kts
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
import java.io.FileInputStream
import java.util.Properties
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
/**
* Loads local user-specific build properties that are not checked into source control.
*/
val userProperties = Properties().apply {
val buildPropertiesFile = File(rootDir, "user.properties")
if (buildPropertiesFile.exists()) {
FileInputStream(buildPropertiesFile).use { load(it) }
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
name = "GitHubPackages (Bitwarden)"
url = uri("https://maven.pkg.github.com/bitwarden/sdk")
credentials {
username = ""
password = userProperties["gitHubToken"] as String? ?: System.getenv("GITHUB_TOKEN")
}
}
if ((userProperties["localSdk"] as String?).toBoolean()) {
mavenLocal()
}
}
}
buildCache {
local {
isEnabled = true
directory = File(rootDir, "build-cache")
removeUnusedEntriesAfterDays = 15
}
}
rootProject.name = "Bitwarden"
include(":app")
include(":authenticatorbridge")