Configure publishing multiple times

Turns out it has to do with usage of project.properties which forces the project to be evaluated. Need to use project.property() instead.