code: public Tag createTag(Object projectIdOrPath, String tagName, String ref, String message, File releaseNotesFile) throws GitLabApiException {
  
          String releaseNotes;
          if (releaseNotesFile != null) {
              try {
                  releaseNotes = FileUtils.readFileContents(releaseNotesFile);
              } catch (IOException ioe) {
                  throw (new GitLabApiException(ioe));
              }
          } else {
              releaseNotes = null;
          }
  
          return (createTag(projectIdOrPath, tagName, ref, message, releaseNotes));
      }
docs: Creates a tag on a particular ref of a given project. A message and a File instance containing the
  release notes are optional.  This method is the same as {@link #createTag(Object, String, String, String, String)},
  but instead allows the release notes to be supplied in a file.
  
  <pre><code>GitLab Endpoint: POST /projects/:id/repository/tags</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param tagName the name of the tag, must be unique for the project
  @param ref the git ref to place the tag on
  @param message the message to included with the tag (optional)
  @param releaseNotesFile a whose contents are the release notes (optional)
  @return a Tag instance containing info on the newly created tag
  @throws GitLabApiException if any exception occurs
  @deprecated Replaced by TagsApi.CreateTag(Object, String, String, String, File)