GRADLE-3014 Fixed the problem with publish artifact 'type' property.

Type is now configured to empty string when the artifact file does not have the extension.