code: public Tag createTag(Object projectIdOrPath, String tagName, String ref, String message, String releaseNotes) throws GitLabApiException {
  
          Form formData = new GitLabApiForm()
                  .withParam("tag_name", tagName, true)
                  .withParam("ref", ref, true)
                  .withParam("message", message, false)
                  .withParam("release_description", releaseNotes, false);
          Response response = post(Response.Status.CREATED, formData.asMap(), "projects",
                  getProjectIdOrPath(projectIdOrPath), "repository", "tags");
          return (response.readEntity(Tag.class));
      }
docs: Creates a tag on a particular ref of the given project. A message and release notes are optional.
  
  <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 releaseNotes the release notes for the tag (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, String)