public String toString() {
    return String.format(versionTemplate, major, minor, micro, (qualifier == null ? "" : "-" + getQualifier()) + (isSnapshot ? "-SNAPSHOT" : ""));
  }
A version number with format major.minor.micro-qualifier.
spock-core/src/main/java/org/spockframework/util/VersionNumber.java