-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
93 lines (77 loc) · 2.38 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.1.2-4'
build_tools_version = '25.0.3'
compile_sdk_version = 25
min_sdk_version = 15
target_sdk_version = 25
libraries = [
supportVersion: "25.3.1",
ankoVersion : "0.9.1a",
]
GROUP = "io.vithor.frameworks.yaf"
VERSION_NAME = "1.0.0-rc2"
}
repositories {
jcenter()
maven { url "https://maven.google.com" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.14"
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
}
}
allprojects {
configurations {
javadocDeps
}
repositories {
jcenter()
maven { url "https://maven.google.com" }
mavenCentral()
maven { url "https://jitpack.io" }
}
}
subprojects {
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
// make sure this comes *after* you apply the Android plugin
// apply plugin: 'com.getkeepsafe.dexcount'
apply plugin: 'org.jetbrains.dokka-android'
apply plugin: 'maven-publish'
android {
compileSdkVersion compile_sdk_version
buildToolsVersion "$build_tools_version"
defaultConfig {
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
warning 'InvalidPackage'
disable 'UnusedResources'
}
}
dependencies {
testImplementation 'junit:junit:4.12'
testImplementation "com.winterbe:expekt:0.5.0"
testImplementation 'com.nhaarman:mockito-kotlin:1.4.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}