towwaygridview를 jar로 만들 예정이다 |
jar로 만들 module의 build.gradle 파일을 열어서 다음을 입력하자.
task deleteOldJar(type: Delete) { delete 'libs/{moduleName}.jar' } //task to export contents as jar task exportJar(type: Copy) { from('build/intermediates/bundles/release/') into('libs/') include('classes.jar') ///Give whatever name you want to give rename('classes.jar', '{moduleName}.jar') } exportJar.dependsOn(deleteOldJar, build)