forked from tasomaniac/DevWidget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (66 loc) · 2.35 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
buildscript {
ext.ci = 'true' == System.getenv('CI')
ext.isPlay = project.hasProperty('play')
ext.configFile = { fileName ->
rootProject.file("gradle/$fileName")
}
def versionMajor = 1
def versionMinor = 7
def versionBuild = 1
ext.playPublishTrack = 'internal'
ext.versions = [
compileSdk : 28,
minSdk : 21,
targetSdk : 28,
versionCode: versionMajor * 10000 + versionMinor * 1000 + versionBuild,
versionName: "${versionMajor}.${versionMinor}",
dagger : '2.22.1',
lifecycle : '2.1.0-beta01',
kotlin : '1.3.31',
okHttp : '3.11.0',
room : '2.1.0-beta01',
]
repositories {
gradlePluginPortal()
google()
mavenCentral()
jcenter {
content {
includeGroup 'org.jetbrains.trove4j'
}
}
if (isPlay) {
maven { url 'https://maven.fabric.io/public' }
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0-beta02'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.21.0'
classpath 'com.novoda:gradle-android-command-plugin:2.1.0'
classpath 'com.novoda:gradle-build-properties-plugin:0.4.1'
classpath 'io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0-RC14'
classpath 'org.jlleitschuh.gradle:ktlint-gradle:8.0.0'
classpath 'com.novoda:gradle-static-analysis-plugin:1.0'
if (isPlay) {
classpath 'com.github.triplet.gradle:play-publisher:2.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.29.0'
}
}
}
ext.ReporterType = org.jlleitschuh.gradle.ktlint.reporter.ReporterType
apply plugin: 'com.github.ben-manes.versions'
subprojects {
repositories {
google()
mavenCentral()
}
if (project.name != 'test-support') {
apply from: configFile('static-analysis.gradle')
}
}
ext.ReporterType = org.jlleitschuh.gradle.ktlint.reporter.ReporterType
apply plugin: 'com.github.ben-manes.versions'
apply from: configFile('configure-not-wanted-repositories.gradle')
apply from: configFile('configure-dependency-updates.gradle')