forked from UweTrottmann/SeriesGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (72 loc) · 3.2 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
82
83
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.31'
ext.versions = [
'minSdk': 15,
'compileSdk': 27,
'targetSdk': 26,
'supportLibrary': '27.1.1', // developer.android.com/topic/libraries/support-library/revisions.html
'lifecycle': '1.1.0', // developer.android.com/topic/libraries/architecture/release-notes.html
'playServices': '11.4.0', // developers.google.com/android/guides/releases
'butterknife': '8.8.1', // github.com/JakeWharton/butterknife/blob/master/CHANGELOG.md
'crashlytics': '2.9.1', // docs.fabric.io/android/changelog.html
'dagger': '2.15', // github.com/google/dagger/releases
'gson': '2.8.2', // github.com/google/gson/blob/master/CHANGELOG.md
'okhttp': '3.10.0', // github.com/square/okhttp/blob/master/CHANGELOG.md
'timber': '4.7.0', // github.com/JakeWharton/timber/blob/master/CHANGELOG.md
'androidUtils': '2.3.1', // github.com/UweTrottmann/AndroidUtils/blob/master/RELEASE_NOTES.md
'thetvdb': '1.5.0', // github.com/UweTrottmann/thetvdb-java/blob/master/CHANGELOG.md
'tmdb': '1.8.3', // github.com/UweTrottmann/tmdb-java/blob/master/CHANGELOG.md
'trakt': '5.7.3', // github.com/UweTrottmann/trakt-java/blob/master/CHANGELOG.md
'truth': '0.40', // github.com/google/truth/releases
'threetenABP': '1.0.6', // github.com/UweTrottmann/ThreeTenABP/blob/master/CHANGELOG.md
// version 15xxxyy -> min SDK 15, release xxx, build yy
'code': 1503007,
'name': '42.2',
]
repositories {
jcenter()
google()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1' // libraries, SeriesGuide
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.3' // SeriesGuide
classpath 'io.fabric.tools:gradle:1.25.2' // SeriesGuide
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.10.0' // api
}
}
apply plugin: 'com.github.ben-manes.versions'
// reject preview releases for dependencyUpdates task
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Preview release')
}
}
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
}
task clean(type: Delete) {
group "build"
delete rootProject.buildDir
}
task wrapper(type: Wrapper) {
group "build setup"
gradleVersion = '4.5'
distributionType = Wrapper.DistributionType.ALL
}