-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
55 lines (44 loc) · 1.78 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.32'
ext.coroutine_version = '1.4.3'
dependencies {
// for apply karte plugin to example project
classpath 'io.karte.android:local-gradle-plugin'
classpath 'com.google.gms:google-services:4.3.3'
}
}
plugins {
id 'com.android.application' version '7.0.4' apply false
id 'com.android.library' version '7.0.4' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
id 'org.jetbrains.dokka' version '1.9.20'
// for upload maven repo
id "com.github.dcendents.android-maven" version "2.1" apply false
id 'io.codearte.nexus-staging' version '0.22.0'
id 'org.jetbrains.kotlinx.binary-compatibility-validator' version '0.13.2'
}
apiValidation {
ignoredProjects += ["test_lib", "sample_kotlin", "sample_java"]
}
configure(subprojects.findAll { !it.name.startsWith("sample_") && !it.name.startsWith("test") }) {
println "configure libraries: ${project.name}"
apply from: '../buildscripts/projectDokka.gradle'
apply from: '../buildscripts/projectJacoco.gradle'
apply from: '../buildscripts/projectMaven.gradle'
apply from: '../buildscripts/projectMavenAndroid.gradle'
}
ext {
ossrhUsername = System.getenv().getOrDefault("MAVEN_USER_NAME", "")
ossrhPassword = System.getenv().getOrDefault("MAVEN_PASSWORD", "")
afterConfigurate = { Project project ->
project.apply from: '../buildscripts/projectSonatype.gradle'
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: 'buildscripts/ktlint.gradle'
apply from: 'buildscripts/dokka.gradle'
apply from: 'buildscripts/jacoco.gradle'
apply from: 'buildscripts/sonatype.gradle'