Moved gradle properties inside gradle and added uploadArchives task for sonatype