Fixed build.gradle for publishing