update build tools and gradle, fix sonatype credential undefined errors