From 5984fbebbadffc64e811b9d75aa083b35d1bde1d Mon Sep 17 00:00:00 2001 From: Szczepan Faber Date: Sun, 29 Nov 2020 19:46:09 -0600 Subject: [PATCH 1/3] Release 1.0.0 version We have several customers, including large one: Mockito project itself. --- version.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/version.properties b/version.properties index ed530da..d9824ce 100644 --- a/version.properties +++ b/version.properties @@ -1 +1,3 @@ -version=0.0.* \ No newline at end of file +# Version of produced binaries. +# The '*' part is automatically resolved by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version). +version=1.0.* From 83b6940d91c5412f8fa8ca8653a5d36bd46952a2 Mon Sep 17 00:00:00 2001 From: Szczepan Faber Date: Thu, 7 Jan 2021 09:35:19 -0600 Subject: [PATCH 2/3] Updated version to avoid confusion We accidentally released 1.0 version too early. See https://github.com/shipkit/shipkit-changelog/issues/51 --- version.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.properties b/version.properties index d9824ce..08ea89e 100644 --- a/version.properties +++ b/version.properties @@ -1,3 +1,3 @@ # Version of produced binaries. # The '*' part is automatically resolved by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version). -version=1.0.* +version=1.1.* From a16ef63f4a06a85c67aea5e1d09eac14fa51af24 Mon Sep 17 00:00:00 2001 From: Szczepan Faber Date: Thu, 7 Jan 2021 09:35:30 -0600 Subject: [PATCH 3/3] Improved documentation --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6503440..625fc69 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![CI](https://github.com/shipkit/shipkit-auto-version/workflows/CI/badge.svg)](https://github.com/shipkit/shipkit-auto-version/actions) -[![Gradle Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/org/shipkit/shipkit-auto-version/maven-metadata.xml.svg?label=Gradle%20Plugins)](https://plugins.gradle.org/plugin/org.shipkit.shipkit-auto-version) +[![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/org/shipkit/shipkit-auto-version/maven-metadata.xml.svg?label=Version)](https://plugins.gradle.org/plugin/org.shipkit.shipkit-auto-version) # Shipkit @@ -37,18 +37,26 @@ Check out [shipkit-changelog](https://github.com/shipkit/shipkit-changelog) plug ## Usage -1. Create `version.properties` file and drop it to your project root. +1. Apply `org.shipkit.shipkit-auto-version` to the root project. + Use the *highest* version available in the Gradle Plugin Portal: + [![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/org/shipkit/shipkit-auto-version/maven-metadata.xml.svg?label=version:)](https://plugins.gradle.org/plugin/org.shipkit.shipkit-auto-version) + +``` +plugins { + id "org.shipkit.shipkit-auto-version" version "x.y.z" +} +``` + +2. Create `version.properties` file and drop it to your project root. The contents should contain the version spec: ``` version=1.0.* ``` -2. Apply `org.shipkit.shipkit-auto-version` to the root project. - 3. For your CI, make sure that all tags are fetched (see the next section) -4. Prosper! When running Gradle build the plugin will resolve `*` part of the version and set this value on the Gradle's project. +4. Prosper! When running Gradle the plugin will resolve `*` part of the version and set this value on the Gradle's project. ### Fetch depth on CI