forked from josesamuel/remoter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (69 loc) · 2.11 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
buildscript {
ext.kotlin_version = '1.9.21'
ext.groupName = 'com.github.cyrillhalter'
ext.versions = [
'minSdk' : 9,
'compileSdk': 26,
'buildTools': '26.0.2',
'release' : '${VERSION_NAME}',
'androidPlugin': '7.0.4',
'supportLibrary': '26.0.1'
]
ext.deps = [
android: [
'runtime': 'com.google.android:android:4.1.1.4',
'gradlePlugin': "com.android.tools.build:gradle:${versions.androidPlugin}",
],
'support': [
'compat': "com.android.support:support-compat:${versions.supportLibrary}",
'annotations': "com.android.support:support-annotations:${versions.supportLibrary}",
'test': [
'runner': 'com.android.support.test:runner:1.0.0',
'rules': 'com.android.support.test:rules:0.4.1'
],
],
javapoet: 'com.squareup:javapoet:1.9.0',
junit: 'junit:junit:4.12',
'auto': [
'service': 'com.google.auto.service:auto-service:1.0-rc6',
'common': 'com.google.auto:auto-common:0.8',
]
]
repositories {
mavenCentral()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath deps.android.gradlePlugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
def versionName() {
if (!hasProperty("version")) {
// don't care
return "dummy"
}
return property("version")
}
subprojects { project ->
repositories {
jcenter()
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
allprojects {
version = versionName()
group = groupName
}
task clean(type: Delete) {
delete rootProject.buildDir
}