forked from stripe/stripe-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (88 loc) · 2.55 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import java.time.Duration
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlinVersion = '1.5.21'
ext.dokkaVersion = '1.5.30'
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:0.7.1"
}
}
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
allprojects {
group = GROUP
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
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 = "30.0.3"
compileSdkVersion = 30
kotlinCoroutinesVersion = '1.5.2'
composeVersion = '1.0.2'
composeActivityVersion = '1.3.1'
espressoVersion = '3.4.0'
ktlintVersion = '0.42.1'
materialVersion = '1.4.0'
daggerVersion = '2.38.1'
androidTestVersion = '1.4.0'
junitVersion = '4.13.2'
robolectricVersion = '4.6'
mockitoCoreVersion = '3.12.4'
mockitoKotlinVersion = '3.2.0'
group_name = GROUP
version_name = VERSION_NAME
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
nexusPublishing {
packageGroup = GROUP
repositories {
sonatype {
username = project.findProperty('NEXUS_USERNAME') ?: ""
password = project.findProperty('NEXUS_PASSWORD') ?: ""
}
}
clientTimeout = Duration.ofMinutes(5)
connectTimeout = Duration.ofMinutes(1)
transitionCheckOptions {
maxRetries.set(40)
delayBetween.set(Duration.ofSeconds(10))
}
}
apply plugin: 'binary-compatibility-validator'
apply plugin: 'org.jetbrains.dokka'
tasks.dokkaHtmlMultiModule.configure {
outputDirectory = new File("${project.rootDir}/docs")
}
apiValidation {
ignoredPackages += ["com.stripe.android.databinding"]
ignoredProjects += ["example", "paymentsheet-example"]
}