-
Notifications
You must be signed in to change notification settings - Fork 951
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
54 lines (50 loc) · 1.28 KB
/
settings.gradle.kts
File metadata and controls
54 lines (50 loc) · 1.28 KB
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
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()
}
}
}
rootProject.name = "Bitwarden"
include(
":annotation",
":app",
":authenticator",
":authenticatorbridge",
":core",
":cxf",
":data",
":network",
":testharness",
":ui",
)