-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
85 lines (75 loc) · 1.93 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
buildscript {
ext.versions = [
'minSdk': 16,
'compileSdk': 27,
]
ext.deps = [
'androidx': [
'annotations': 'androidx.annotation:annotation:1.7.1',
'test': [
'runner': 'androidx.test:runner:1.5.2',
],
],
'kotlinCoroutines': 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1',
'rxJava2': 'io.reactivex.rxjava2:rxjava:2.2.21',
'rxJava3': 'io.reactivex.rxjava3:rxjava:3.1.10',
'junit': 'junit:junit:4.13.2',
'truth': 'com.google.truth:truth:1.4.4',
'turbine': 'app.cash.turbine:turbine:1.2.0',
]
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.8.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.10'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:2.0.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.12.0'
}
}
subprojects {
repositories {
mavenCentral()
google()
jcenter()
}
plugins.withId('org.jetbrains.kotlin.android') {
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
}
plugins.withId('com.android.library') {
android {
compileSdkVersion versions.compileSdk
defaultConfig {
minSdkVersion versions.minSdk
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
textOutput 'stdout'
textReport true
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinCompile).configureEach { task ->
task.kotlinOptions {
freeCompilerArgs += [
'-progressive',
]
}
}
plugins.withId('com.vanniktech.maven.publish') {
signing {
def signingKey = findProperty('signingKey')
def signingPassword = ''
useInMemoryPgpKeys(signingKey, signingPassword)
}
}
}