update gradle properties and dist task for release artifact.