-
Notifications
You must be signed in to change notification settings - Fork 662
/
Copy pathbuild.gradle
138 lines (115 loc) · 3.73 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
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.6.10'
ext.dokkaVersion = '1.6.10'
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
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.9.0"
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 = 31
androidxActivityVersion = '1.4.0'
androidxAnnotationVersion = '1.3.0'
androidxAppcompatVersion = '1.4.1'
androidxArchCoreVersion = '2.1.0'
androidxBrowserVersion = '1.4.0'
androidxComposeVersion = '1.1.1'
androidxConstraintlayoutComposeVersion = '1.0.0'
androidxConstraintlayoutVersion = '2.1.3'
androidxCoreVersion = '1.7.0'
androidxFragmentVersion = '1.4.1'
androidxLifecycleVersion = '2.4.1'
androidxNavigationVersion = '2.4.2'
androidxPreferenceVersion = '1.2.0'
androidxRecyclerviewVersion = '1.2.1'
androidxSecurityVersion = '1.1.0-alpha03'
kotlinCoroutinesVersion = '1.6.1'
kotlinSerializationVersion = '1.3.2'
flowlayoutVersion = '0.23.1'
ktlintVersion = '0.45.2'
materialVersion = '1.5.0'
daggerVersion = '2.41'
playServicesWalletVersion = '19.1.0'
androidTestVersion = '1.4.0'
androidTestJunitVersion = '1.1.3'
truthVersion = '1.1.3'
junitVersion = '4.13.2'
robolectricVersion = '4.7.3'
mockitoCoreVersion = '4.4.0'
mockitoKotlinVersion = '4.0.0'
espressoVersion = '3.4.0'
jsonVersion = '20220320'
uiautomator = '2.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", "stripecardscan-example", "identity-example"]
nonPublicMarkers.add("androidx.annotation.RestrictTo")
}