11apply plugin : ' com.android.library'
2+ apply plugin : ' com.github.dcendents.android-maven'
3+
4+ group = ' com.github.kmenager'
25
36android {
4- compileSdkVersion 25
5- buildToolsVersion " 25.0.2"
6-
7- defaultConfig {
8- minSdkVersion 15
9- targetSdkVersion 25
10- versionCode 1
11- versionName " 1.0"
12- }
13- buildTypes {
14- release {
15- minifyEnabled false
16- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
17- }
7+ compileSdkVersion 25
8+ buildToolsVersion " 25.0.2"
9+
10+ defaultConfig {
11+ minSdkVersion 15
12+ targetSdkVersion 25
13+ versionCode 1
14+ versionName " 1.0"
15+ }
16+ buildTypes {
17+ release {
18+ minifyEnabled false
19+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
1820 }
21+ }
1922}
2023
2124dependencies {
22- final SUPPORT_LIBRARY_VERSION = ' 25.2.0'
23- compile fileTree(dir : ' libs' , include : [' *.jar' ])
24- androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
25- exclude group : ' com.android.support' , module : ' support-annotations'
26- })
27- compile " com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION "
28- compile " com.android.support:design:$SUPPORT_LIBRARY_VERSION "
29- testCompile ' junit:junit:4.12'
25+ final SUPPORT_LIBRARY_VERSION = ' 25.2.0'
26+ compile fileTree(dir : ' libs' , include : [' *.jar' ])
27+ androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
28+ exclude group : ' com.android.support' , module : ' support-annotations'
29+ })
30+ compile " com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION "
31+ compile " com.android.support:design:$SUPPORT_LIBRARY_VERSION "
32+ testCompile ' junit:junit:4.12'
33+ }
34+
35+ // build a jar with source files
36+ task sourcesJar (type : Jar ) {
37+ from android. sourceSets. main. java. srcDirs
38+ classifier = ' sources'
3039}
40+
41+ task javadoc (type : Javadoc ) {
42+ failOnError false
43+ source = android. sourceSets. main. java. sourceFiles
44+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
45+ classpath + = configurations. compile
46+ }
47+
48+ // build a jar with javadoc
49+ task javadocJar (type : Jar , dependsOn : javadoc) {
50+ classifier = ' javadoc'
51+ from javadoc. destinationDir
52+ }
53+
54+ artifacts {
55+ archives sourcesJar
56+ archives javadocJar
57+ }
0 commit comments