-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
57 lines (50 loc) · 1.31 KB
/
build.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
buildscript {
ext.versions = [
'minSdk' : 14,
'compileSdk' : 28,
'buildTools' : '28.0.3',
'kotlin' : '1.3.21',
'kotlinPoet' : '1.4.4',
'moshi' : '1.8.0',
'androidPlugin': '3.3.0',
]
ext.deps = [
android : [
'runtime' : 'com.google.android:android:4.1.1.4',
'gradlePlugin': "com.android.tools.build:gradle:${versions.androidPlugin}",
]
]
repositories {
mavenCentral()
maven {
url 'https://maven.google.com'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath deps.android.gradlePlugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
subprojects { project ->
group 'pm.gnosis'
version getKey('LIBRARY_VERSION', '0.0.42')
repositories {
mavenCentral()
maven {
url 'https://maven.google.com'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
static def getKey(String name, String defaultValue = null) {
def value = System.getenv(name)
if (value == null) {
return defaultValue
}
return value
}