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
apply plugin: 'com.android.library'
//apply plugin: 'com.novoda.bintray-release'
 
android {
    compileSdkVersion 28
    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0.2"
 
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
 
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    buildToolsVersion '28.0.3'
 
//    lintOptions {
//        abortOnError false
//        warning 'InvalidPackage'
//    }
}
 
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28+'
    api 'org.greenrobot:eventbus:3.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
 
}
 
 
//task makeJar(type: Copy) {
////删除存在的
//      delete'build/libs/test.jar'
////设置拷贝的文件
//      from('build/intermediates/packaged-classes/release/')
////打进jar包后的文件目录
//      into('build/libs/')
////将casses.jar放入build/libs/目录下
////include ,exclude参数来设置过滤
////(我们只关心classes.jar这个文件)
//      include('classes.jar')
////重命名
//    rename ('classes.jar','test.jar')
//}
//makeJar.dependsOn(build)
 
 
 
 
//publish {
//    userOrg = 'tommydai'
//    groupId = 'com.hdl.sdk'
//    artifactId = 'hdlsdk'
//    publishVersion = '1.5.8'
//    desc = 'HDL core libray'
//}