Skip to content

Commit

Permalink
Merge pull request #51 from shipkit/one-point-o
Browse files Browse the repository at this point in the history
Release 1.1.0 version
  • Loading branch information
shestee authored Jan 7, 2021
2 parents a63ea9e + a16ef63 commit f3eeda3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
version=0.0.*
# Version of produced binaries.
# The '*' part is automatically resolved by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version).
version=1.1.*

0 comments on commit f3eeda3

Please sign in to comment.