XD-1509 Disable publishing modules artifacts

- Disable modules projects' artifact publishing by disabling
`artifactoryPublish` task if defined for the module project
- Use the same approach for hadoop artifacts