/
build.gradle
60 lines (50 loc) · 1.71 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
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["library" : "true"]
}
}
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
//// Jar
//task androidJar(type: Jar) {
// dependsOn assemble
// group 'Build'
// description 'blah blah'
//// from zipTree('build/intermediates/bundles/release/classes.jar')
//// from zipTree('../annotations-processor/build/libs/processor.jar')
// from zipTree('../annotations/build/libs/annotations.jar')
//}
configurations {
javadocDeps
}
dependencies {
// evaluationDependsOn(':annotations')
//compile project(':annotations')
compile fileTree(dir: 'libs', include: ['*.jar'])
compile "com.android.support:appcompat-v7:$supportLibraryVersion"
compile "com.android.support:support-annotations:$supportLibraryVersion"
// TODO: so far moved @IntDef's to view in library, otherwise can't build jdoc's for :annotations: module.
javadocDeps "com.android.support:support-annotations:$supportLibraryVersion"
// javadocDeps "com.kvolkov.animatedprogressviews:annotations"
// javadocDeps "com.kvolkov.animatedprogressviews.annotations:1.0"
}
apply from: rootProject.file('gradle/publish-library.gradle')