Rework how gradle.properties is handled