-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·81 lines (70 loc) · 2.1 KB
/
build.gradle
File metadata and controls
executable file
·81 lines (70 loc) · 2.1 KB
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
import com.github.sherter.googlejavaformatgradleplugin.GoogleJavaFormat
import com.github.sherter.googlejavaformatgradleplugin.VerifyGoogleJavaFormat
buildscript {
ext.kotlin_version = '1.2.50'
repositories {
// As of Gradle plugin 3.0 you can use the `google()` shortcut instead of `maven { url 'https://maven.google.com' }`
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.github.sherter.google-java-format' version '0.6'
id 'com.github.hierynomus.license' version '0.14.0'
}
allprojects {
repositories {
google()
jcenter()
}
}
task format(type: GoogleJavaFormat) {
exclude '**/package-info.java'
}
task verifyFormat(type: VerifyGoogleJavaFormat) {
exclude '**/package-info.java'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
// Sdk and tools
minSdkVersion = 15
targetSdkVersion = 26
compileSdkVersion = 26
buildToolsVersion = '27.0.3'
// App dependencies
supportLibraryVersion = '27.1.1'
guavaVersion = '18.0'
junitVersion = '4.12'
mockitoVersion = '1.10.19'
powerMockito = '1.6.2'
hamcrestVersion = '1.3'
runnerVersion = '1.0.0'
rulesVersion = '1.0.0'
espressoVersion = '3.0.1'
rxjavaVersion = '2.1.9'
rxandroidVersion = '2.0.1'
sqlbriteVersion = '2.0.0'
mobius = '1.2.0'
}
allprojects {
apply plugin: 'com.github.hierynomus.license'
license {
header rootProject.file('apache2.header')
exclude("**/AutoValue_*.java")
mapping("java", "SLASHSTAR_STYLE")
}
getTasksByName('check', false).each { checkTask -> checkTask.dependsOn(tasks.withType(Javadoc)) }
}