but sometimes our SDK needs to be shared with some other eclipse projects, so we need to output the JAR package, which
can be passed through the build. Gradle adds tasks to achieve
task makeJar (type: Copy) { delete 'build/libs/mysdk.jar' from('build/intermediates/bundles/release/') into('build/libs/') include('classes.jar') rename ('classes.jar', 'mysdk.jar') } makeJar.dependsOn (build)
Execute the generated JAR package in the terminal
./gradview makeJar
The JAR package we generated can be found in the following directory