This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
forked from square/phrase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (58 loc) · 1.4 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
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.0-rc01'
}
}
dependencies {
repositories {
google()
jcenter()
}
}
group = GROUP
version = VERSION_NAME
apply plugin: 'com.android.library'
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 14
versionName VERSION_NAME
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
implementation 'androidx.annotation:annotation:1.1.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:3.2.0'
testImplementation 'org.easytesting:fest-assert-core:2.0M10'
testImplementation 'org.robolectric:robolectric:4.3.1'
}
apply plugin: 'checkstyle'
checkstyle {
configFile file('checkstyle.xml')
ignoreFailures true
showViolations false
configProperties = [
'checkstyle.suppressions.file': file('checkstyle-suppressions.xml'),
]
}
// Applying the checkstyle plugin adds multiple tasks but not
// one for checkstylin' against android sources. This task
// belows does the trick.
task checkstyle(type: Checkstyle) {
configFile file('checkstyle.xml')
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
apply from: 'gradle-maven-publish.gradle'