* Introduce publish_snapshot.yml for uploading the snapshot artifact on the mavenCentral.
* We have added the `SNAPSHOT` env variable in publish_snapshot.yml and match it our code if found then it means this workflow triggered to publish the snapshot on maven so on behalf of this we have rectify our code.
* Used latest @v2 action for setting up java for the CI instead of @v1.
* Used single command of gradle instead of multiple commands of gradle for `Compile and prepare package` task, because gradle will automatically execute all tasks one by one.