-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
53 lines (44 loc) · 1.52 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
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'org.jetbrains.dokka'
buildscript {
apply from: 'common.gradle'
apply from: rootProject.file("versions.gradle")
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.androidgradleplugin"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath "io.github.gradle-nexus:publish-plugin:$versions.nexusPublish"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$versions.dokka"
}
}
allprojects {
repositories {
google()
jcenter()
}
apply from: rootProject.file("versions.gradle")
afterEvaluate {
// Common library module configurations
if (plugins.hasPlugin("com.android.library") || plugins.hasPlugin("com.android.application")) {
android.compileSdkVersion = versions.compileSdkVersion
android.defaultConfig {
minSdkVersion versions.minSdkVersion
targetSdkVersion versions.targetSdkVersion
vectorDrawables.useSupportLibrary = true
}
android.compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: "${rootDir}/publish-root.gradle"