-
-
Notifications
You must be signed in to change notification settings - Fork 336
Expand file tree
/
Copy pathsettings.gradle
More file actions
34 lines (30 loc) · 1.38 KB
/
Copy pathsettings.gradle
File metadata and controls
34 lines (30 loc) · 1.38 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
rootProject.name='rethink'
include ':app'
include ':benchmark'
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
// firestack AAR is not on google()/mavenCentral(); it must be fetched
// from the repository selected via `firestackRepo` in gradle.properties.
// NOTE: with RepositoriesMode.PREFER_SETTINGS, repositories declared in
// project build.gradle files are ignored
def firestackRepo = providers.gradleProperty("firestackRepo").orElse("github").get()
if (firestackRepo == "jitpack") {
// jitpack.io/#celzero/firestack
maven { url 'https://jitpack.io' }
} else if (firestackRepo == "github") {
// maven.pkg.github.com/celzero/firestack
maven {
name = 'GitHubPackages'
url = uri("https://maven.pkg.github.com/celzero/firestack")
credentials {
username = providers.gradleProperty("gpr.user").orElse(providers.environmentVariable("USERNAME_GITHUB")).getOrNull()
password = providers.gradleProperty("gpr.key").orElse(providers.environmentVariable("TOKEN_GITHUB")).getOrNull()
}
}
}
// "ossrh": no-op; mavenCentral (com.celzero:firestack) is already included
}
}