Adding jar creating function to gradle.