Menu Home

Android Studio: make jar

task clearJar(type: Delete) {
    delete 'build/outputs/jar/something-release.jar'
}

task makeJar(type: Copy) {
    from('build/intermediates/bundles/release/')
    into('build/outputs/jar/')
    include('classes.jar')
    rename('classes.jar', 'something-release.jar')
}
makeJar.dependsOn(clearJar, build)

Categories: Android Studio

Tagged as:

lnmcc