forked from Arello-Mobile/Moxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
42 lines (40 loc) · 1.19 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
42
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 gradle.nexusUrl }
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "OmegaMoxy"
include ':app'
include ':moxy'
include ':moxy:androidx'
include ':moxy:compiler'