forked from stripe/stripe-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (54 loc) · 1.67 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlinVersion = '1.3.60'
ext.dokkaVersion = '0.9.17' // 0.9.18 has a bug that causes the task to fail
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.6'
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokkaVersion"
}
}
allprojects {
group = GROUP
repositories {
google()
jcenter()
}
task checkstyle(type: Checkstyle) {
showViolations = true
configFile file("../settings/checkstyle.xml")
source 'src/main/java'
include '**/*.java'
exclude '**/gen/**'
exclude '**/R.java'
exclude '**/BuildConfig.java'
// empty classpath
classpath = files()
}
}
ext {
buildToolsVersion = "29.0.2"
compileSdkVersion = 29
javaAnnotationVersion = "1.0"
coroutineVersion = '1.3.0'
espressoVersion = "3.2.0"
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
apply plugin: "io.codearte.nexus-staging"
nexusStaging {
username = project.hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
password = project.hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
packageGroup = GROUP
}