forked from stripe/stripe-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
150 lines (127 loc) · 4.35 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import java.time.Duration
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'dependencies.gradle'
apply from: './build-configuration/build-environment.gradle'
ext.kotlinVersion = '1.7.20'
ext.dokkaVersion = '1.7.20'
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:0.12.1"
classpath 'com.karumi:shot:5.14.1'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-appdistribution-gradle:3.0.1'
classpath buildLibs.detektGradlePlugin
}
}
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'io.codearte.nexus-staging' version '0.30.0'
}
apply plugin: "io.gitlab.arturbosch.detekt"
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 = 33
androidxActivityVersion = '1.6.1'
androidxAnnotationVersion = '1.5.0'
androidxAppcompatVersion = '1.5.1'
androidxArchCoreVersion = '2.1.0'
androidxBrowserVersion = '1.4.0'
androidxComposeVersion = '1.3.1'
androidxComposeCompilerVersion = '1.3.2'
androidxConstraintlayoutComposeVersion = '1.0.1'
androidxConstraintlayoutVersion = '2.1.4'
androidxCoreVersion = '1.9.0'
androidxFragmentVersion = '1.5.4'
androidxLifecycleVersion = '2.5.1'
androidxNavigationVersion = '2.5.3'
androidxPreferenceVersion = '1.2.0'
androidxRecyclerviewVersion = '1.2.1'
androidxSecurityVersion = '1.1.0-alpha04'
kotlinCoroutinesVersion = '1.6.4'
kotlinSerializationVersion = '1.4.1'
accompanistVersion = '0.27.0'
ktlintVersion = '0.47.1'
// material 1.6 causes paymentsheet to not render correctly.
// see here: https://github.com/material-components/material-components-android/issues/2702
materialVersion = '1.5.0'
daggerVersion = '2.44.2'
playServicesWalletVersion = '19.1.0'
placesVersion = '2.7.0'
playServicesVersion = '1.6.4'
leakCanaryVersion = '2.10'
okhttpVersion = '4.10.0'
androidTestVersion = '1.4.0'
androidTestJunitVersion = '1.1.4'
truthVersion = '1.1.3'
junitVersion = '4.13.2'
robolectricVersion = '4.8.2'
mockitoCoreVersion = '4.9.0'
mockitoKotlinVersion = '4.0.0'
espressoVersion = '3.5.0'
jsonVersion = '20220924'
uiautomator = '2.2.0'
showkaseVersion = '1.0.0-beta14'
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", "stripecardscan-example", "identity-example", "financial-connections-example"]
nonPublicMarkers.add("androidx.annotation.RestrictTo")
nonPublicMarkers.add("dagger.internal.DaggerGenerated")
}