Updated version to match official SEMVER revision. Added extra info, fixed typo.
parent
e1a8278cd5
commit
3ed3d6a1e7
6
LICENSE
6
LICENSE
|
@ -1,7 +1,7 @@
|
|||
- Version - Java Semantic Versioning with patch info exclusion
|
||||
- Version - Java Semantic Versioning with exceptions. Minor/Patch number optional and build-after-final-dot (minor/patch) permitted.
|
||||
https://git.dorkbox.com/dorkbox/Version
|
||||
Copyright 2018 - MIT License
|
||||
dorkbox, llc
|
||||
Copyright 2020 - MIT License
|
||||
Dorkbox LLC
|
||||
G. Richard Bellamy
|
||||
Kenduck
|
||||
Larry Bordowitz <lbordowitz@yahoo-inc.com>
|
||||
|
|
11
README.md
11
README.md
|
@ -2,16 +2,17 @@ Java Semantic Versioning
|
|||
============================
|
||||
|
||||
A Java implementation of the Semantic Versioning Specification, as per ([http://semver.org](http://semver.org/spec/v2.0.0.html
|
||||
)) **modified** to exclude the patch version information if zero or not specified. It is additionally **modified** to permit parsing
|
||||
build information after a final '.', such that 4.1.0.Final will parse a build as "Final".
|
||||
)) **modified** to exclude the minor/patch version information if zero or not specified. It is additionally **modified** to permit parsing
|
||||
build information after a final '.' following minor/patch, such that 4.1.0.Final will parse a build as "Final".
|
||||
|
||||
This is a breaking change when comparing strings to the original Semantic Versioning Specification by Tom Preston-Werner. When comparing
|
||||
Version objects, it is non-breaking, and is breaking when writing Version strings.
|
||||
|
||||
### Versioning ###
|
||||
|
||||
Semantic Versioning Specification (SemVer v2.0.0-dorkbox)
|
||||
Semantic Versioning Specification (SemVer v2.3-dorkbox)
|
||||
|
||||
1. Modified to exclude minor version information.
|
||||
1. Modified to exclude patch version information.
|
||||
1. Modified to permit reading build metadata after a final . (with, or without the patch number)
|
||||
|
||||
|
@ -67,7 +68,7 @@ To install the Java SemanticVersioning library add the following dependency to y
|
|||
<dependency>
|
||||
<groupId>com.dorkbox</groupId>
|
||||
<artifactId>Version</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>2.3</version>
|
||||
</dependency>
|
||||
~~~
|
||||
|
||||
|
@ -75,7 +76,7 @@ To install the Java SemanticVersioning library add the following dependency to y
|
|||
~~~ xml
|
||||
dependencies {
|
||||
...
|
||||
compile "com.dorkbox:Version:1.1"
|
||||
compile "com.dorkbox:Version:2.3"
|
||||
}
|
||||
~~~
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ plugins {
|
|||
|
||||
id("com.dorkbox.CrossCompile") version "1.0.1"
|
||||
id("com.dorkbox.GradleUtils") version "1.8"
|
||||
id("com.dorkbox.Licensing") version "1.4.37"
|
||||
id("com.dorkbox.Licensing") version "2.0"
|
||||
id("com.dorkbox.VersionUpdate") version "1.7"
|
||||
id("com.dorkbox.GradlePublish") version "1.3"
|
||||
|
||||
|
@ -33,9 +33,9 @@ plugins {
|
|||
|
||||
object Extras {
|
||||
// set for the project
|
||||
const val description = "Java Semantic Versioning with exlusions. Patch number optional and build-after-final-dot permitted."
|
||||
const val description = "Java Semantic Versioning with exceptions. Minor/Patch number optional and build-after-final-dot (minor/patch) permitted."
|
||||
const val group = "com.dorkbox"
|
||||
const val version = "1.2"
|
||||
const val version = "2.3"
|
||||
|
||||
// set as project.ext
|
||||
const val name = "Version"
|
||||
|
|
|
@ -222,7 +222,7 @@ class Version implements Comparable<Version>, Serializable {
|
|||
*/
|
||||
public static
|
||||
String getVersion() {
|
||||
return "1.2";
|
||||
return "2.3";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue