Add support for parsing deployments

@smiklosovic It's done to support both setting the field in groovy as a property or a method.

    deployment {
       source = X
    }

    deployment {
       source X
    }