-
Notifications
You must be signed in to change notification settings - Fork 126
/
build.gradle
76 lines (66 loc) · 1.57 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
buildscript {
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0-alpha07'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
}
}
dependencies {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.vanniktech.maven.publish'
android {
compileSdkVersion 31
defaultConfig {
minSdkVersion 11
versionName VERSION_NAME
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}
dependencies {
implementation 'androidx.annotation:annotation:1.3.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.easytesting:fest-assert-core:2.0M10'
testImplementation 'org.robolectric:robolectric:4.7.3'
}
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()
}
allprojects {
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}