Look at how to create your own package Jar
Inside just write method
public int add(int a,int b){ return (a+b); }
makeJar Task (of the type: Copy) { the Delete ' build / libs / TestJarV1.jar ' // delete the build / libs / folder name for the jar package TestJarV1.jar from ( ' Build / Intermediates / Packaged-classes / Release / ' ) // removed from this default directory jar package iNTO ( ' Build / libs / ' ) // the jar packet is output to the specified directory the include ( ' classes.jar ' ) the rename ( ' classes.jar ' , ' TestJarV1.jar ' ) // custom jar package name } makeJar.dependsOn (Build)
Now we put the jar package to copy the current project inside a try
Then see how to modify the existing jar package, we assume that someone else is imported jar package Kazakhstan
We only
\
I eat first ...
Eat in ...