Compatability fix for Gradle 4.3.x
Move deploying action to a separated task
Minor bugs fixes