-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
41 lines (36 loc) · 1.17 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
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url 'https://jitpack.io'}
}
}
dependencyResolutionManagement {
Properties properties = new Properties()
def localPropertiesPath = 'local.properties'
if (file(localPropertiesPath).exists()) {
properties.load(file(localPropertiesPath).newDataInputStream())
}
gradle.ext {
nexusUrl = properties.getProperty("nexusUrl") ?: ""
nexusUsername = properties.getProperty("nexusUsername")
nexusPassword = properties.getProperty("nexusPassword")
gitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
}
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io'}
maven { url gradle.nexusUrl }
}
}
include ':app', ':core', ':processor', ':annotations', ':crash', ':stub', ':mvp-processor'