diff --git a/LICENSE b/LICENSE index 2b55562..9b3991b 100644 --- a/LICENSE +++ b/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 diff --git a/README.md b/README.md index 945b580..f8de18c 100644 --- a/README.md +++ b/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 com.dorkbox Version - 1.1 + 2.3 ~~~ @@ -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" } ~~~ diff --git a/build.gradle.kts b/build.gradle.kts index f4ec6b2..d242cad 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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" diff --git a/src/com/dorkbox/version/Version.java b/src/com/dorkbox/version/Version.java index c34aee9..07e3578 100644 --- a/src/com/dorkbox/version/Version.java +++ b/src/com/dorkbox/version/Version.java @@ -222,7 +222,7 @@ class Version implements Comparable, Serializable { */ public static String getVersion() { - return "1.2"; + return "2.3"; } /**