forked from connectbot/connectbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
42 lines (38 loc) · 850 Bytes
/
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
pluginManagement {
def MAVEN_REPO_CACHE = System.getenv("MAVEN_REPO_CACHE")?.trim()
if (MAVEN_REPO_CACHE) {
repositories {
maven {
url MAVEN_REPO_CACHE
}
}
} else {
repositories {
google()
gradlePluginPortal()
}
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "com.android.application") {
useModule("com.android.tools.build:gradle:${requested.version}")
}
}
}
}
ext.MAVEN_REPO_CACHE = System.getenv("MAVEN_REPO_CACHE")?.trim()
ext.GRADLE_BUILD_CACHE = System.getenv("GRADLE_BUILD_CACHE")?.trim()
ext.TRANSLATIONS_ONLY = System.getenv("TRANSLATIONS_ONLY")?.trim()
buildCache {
local { enabled = !GRADLE_BUILD_CACHE }
if (GRADLE_BUILD_CACHE) {
remote(HttpBuildCache) {
url = GRADLE_BUILD_CACHE
push = true
}
}
}
if (!TRANSLATIONS_ONLY) {
include ':app'
}
include ':translations'