plugins {
    id 'com.android.library'
}

android {
    compileSdkVersion 29

    defaultConfig {
        minSdkVersion 14
    }

    //这里就是打jar包
    task makeJar(type: Copy) {
        //删除旧的jar包
        delete 'build/libs/sobot_gson_1.1.1.jar'
        //原地址
        from('build/intermediates/packaged-classes/release/')
        //导出jar包的地址
        into('build/libs/')
        //包含的jar包
        include('classes.jar')
        //重命名jar包为mysdk
        rename ('classes.jar', 'sobot_gson_1.1.1.jar')
    }
    makeJar.dependsOn(build)
}

dependencies {

}

//添加发布到mavenCentral脚本
apply from: 'sobot-gson-publish-mavencentral.gradle'