Set username/password for MavenCentral conditionally

Seems like a closure for configuring the Ant-Task doesn't work.