Android Library Project发布jar

2017/08/08 Android

Android Library Project只能发布aar,加入下面的配置后,可以同时发布jar

task makeJar(type: Jar) {
    from('build/intermediates/classes/release/')
    include('*/.class')
    exclude('**/BuildConfig.class')
}

artifacts {
    archives makeJar
}

Search

    Post Directory