Version 1.0.1
This commit is contained in:
parent
4493d6b0e6
commit
d99a9ba6bd
3 changed files with 19 additions and 19 deletions
18
README.html
18
README.html
|
@ -107,7 +107,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: left;"><code>VERSION</code></td>
|
<td style="text-align: left;"><code>VERSION</code></td>
|
||||||
<td style="text-align: left;">The full version string.</td>
|
<td style="text-align: left;">The full version string.</td>
|
||||||
<td style="text-align: left;"><code>1.0.0-alpha+001</code></td>
|
<td style="text-align: left;"><code>1.2.3-alpha+001</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: left;"><code>MAJOR</code></td>
|
<td style="text-align: left;"><code>MAJOR</code></td>
|
||||||
|
@ -117,12 +117,12 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: left;"><code>MINOR</code></td>
|
<td style="text-align: left;"><code>MINOR</code></td>
|
||||||
<td style="text-align: left;">The minor version.</td>
|
<td style="text-align: left;">The minor version.</td>
|
||||||
<td style="text-align: left;"><code>0</code></td>
|
<td style="text-align: left;"><code>2</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: left;"><code>PATCH</code></td>
|
<td style="text-align: left;"><code>PATCH</code></td>
|
||||||
<td style="text-align: left;">The patch version.</td>
|
<td style="text-align: left;">The patch version.</td>
|
||||||
<td style="text-align: left;"><code>0</code></td>
|
<td style="text-align: left;"><code>3</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: left;"><code>PRERELEASE</code></td>
|
<td style="text-align: left;"><code>PRERELEASE</code></td>
|
||||||
|
@ -341,13 +341,13 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
|
||||||
<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><dependency></span>
|
<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><dependency></span>
|
||||||
<span class="kw"><groupId></span>net.thauvin.erik<span class="kw"></groupId></span>
|
<span class="kw"><groupId></span>net.thauvin.erik<span class="kw"></groupId></span>
|
||||||
<span class="kw"><artifactId></span>semver<span class="kw"></artifactId></span>
|
<span class="kw"><artifactId></span>semver<span class="kw"></artifactId></span>
|
||||||
<span class="kw"><version></span>1.0.0<span class="kw"></version></span>
|
<span class="kw"><version></span>1.0.1<span class="kw"></version></span>
|
||||||
<span class="kw"></dependency></span></code></pre></div>
|
<span class="kw"></dependency></span></code></pre></div>
|
||||||
<h3 id="gradle">Gradle</h3>
|
<h3 id="gradle">Gradle</h3>
|
||||||
<h4 id="class-generation">Class Generation</h4>
|
<h4 id="class-generation">Class Generation</h4>
|
||||||
<p>To install and run from <a href="https://gradle.org/">Gradle</a>, add the following to the <code>build.gradle</code> file:</p>
|
<p>To install and run from <a href="https://gradle.org/">Gradle</a>, add the following to the <code>build.gradle</code> file:</p>
|
||||||
<pre class="gradle"><code>dependencies {
|
<pre class="gradle"><code>dependencies {
|
||||||
compileOnly 'net.thauvin.erik:semver:1.0.0'
|
compileOnly 'net.thauvin.erik:semver:1.0.1'
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
<p>The <code>GeneratedVersion</code> class will be automatically created in the <code>build/generated</code> directory upon compiling.</p>
|
<p>The <code>GeneratedVersion</code> class will be automatically created in the <code>build/generated</code> directory upon compiling.</p>
|
||||||
<h4 id="class-source-generation">Class & Source Generation</h4>
|
<h4 id="class-source-generation">Class & Source Generation</h4>
|
||||||
|
@ -357,11 +357,11 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
<p>Then add the following to the <code>build.gradle</code> file:</p>
|
<p>Then add the following to the <code>build.gradle</code> file:</p>
|
||||||
<pre class="gradle"><code>dependencies {
|
<pre class="gradle"><code>dependencies {
|
||||||
compileOnly 'net.thauvin.erik:semver:1.0.0'
|
compileOnly 'net.thauvin.erik:semver:1.0.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
annotationProcessor {
|
annotationProcessor {
|
||||||
library 'net.thauvin.erik:semver:1.0.0'
|
library 'net.thauvin.erik:semver:1.0.1'
|
||||||
processor 'net.thauvin.erik.semver.VersionProcessor'
|
processor 'net.thauvin.erik.semver.VersionProcessor'
|
||||||
// sourcesDir 'src/generated/java'
|
// sourcesDir 'src/generated/java'
|
||||||
}
|
}
|
||||||
|
@ -375,8 +375,8 @@ compileJava {
|
||||||
<h3 id="kobalt">Kobalt</h3>
|
<h3 id="kobalt">Kobalt</h3>
|
||||||
<p>To install and run from <a href="http://beust.com/kobalt/">Kobalt</a>, add the following to the <code>Build.kt</code> file:</p>
|
<p>To install and run from <a href="http://beust.com/kobalt/">Kobalt</a>, add the following to the <code>Build.kt</code> file:</p>
|
||||||
<pre class="gradle"><code>dependencies {
|
<pre class="gradle"><code>dependencies {
|
||||||
apt("net.thauvin.erik:semver:1.0.0")
|
apt("net.thauvin.erik:semver:1.0.1")
|
||||||
compileOnly("net.thauvin.erik:semver:1.0.0")
|
compileOnly("net.thauvin.erik:semver:1.0.1")
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
<p>Please look at the <a href="https://github.com/ethauvin/semver/blob/master/example/kobalt/src/Build.kt">Build.kt</a> file in the <a href="https://github.com/ethauvin/semver/tree/master/example">example</a> module directory for a sample.</p>
|
<p>Please look at the <a href="https://github.com/ethauvin/semver/blob/master/example/kobalt/src/Build.kt">Build.kt</a> file in the <a href="https://github.com/ethauvin/semver/tree/master/example">example</a> module directory for a sample.</p>
|
||||||
<h3 id="kotlin">Kotlin</h3>
|
<h3 id="kotlin">Kotlin</h3>
|
||||||
|
|
18
README.md
18
README.md
|
@ -60,10 +60,10 @@ Field | Description | Example
|
||||||
:--------------|:---------------------------------|:-----------------
|
:--------------|:---------------------------------|:-----------------
|
||||||
`PROJECT` | The project name, if any. | `MyProject`
|
`PROJECT` | The project name, if any. | `MyProject`
|
||||||
`BUILDDATE` | The build date. | [`java.util.Date`](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html)
|
`BUILDDATE` | The build date. | [`java.util.Date`](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html)
|
||||||
`VERSION` | The full version string. | `1.0.0-alpha+001`
|
`VERSION` | The full version string. | `1.2.3-alpha+001`
|
||||||
`MAJOR` | The major version. | `1`
|
`MAJOR` | The major version. | `1`
|
||||||
`MINOR` | The minor version. | `0`
|
`MINOR` | The minor version. | `2`
|
||||||
`PATCH` | The patch version. | `0`
|
`PATCH` | The patch version. | `3`
|
||||||
`PRERELEASE` | The pre-release version, if any. | `alpha`
|
`PRERELEASE` | The pre-release version, if any. | `alpha`
|
||||||
`BUILDMETA` | The build metadata, if any. | `001`
|
`BUILDMETA` | The build metadata, if any. | `001`
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ To install and run from [Maven](http://maven.apache.org/), configure an artifact
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.thauvin.erik</groupId>
|
<groupId>net.thauvin.erik</groupId>
|
||||||
<artifactId>semver</artifactId>
|
<artifactId>semver</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ To install and run from [Gradle](https://gradle.org/), add the following to the
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'net.thauvin.erik:semver:1.0.0'
|
compileOnly 'net.thauvin.erik:semver:1.0.1'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -194,11 +194,11 @@ Then add the following to the `build.gradle` file:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'net.thauvin.erik:semver:1.0.0'
|
compileOnly 'net.thauvin.erik:semver:1.0.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
annotationProcessor {
|
annotationProcessor {
|
||||||
library 'net.thauvin.erik:semver:1.0.0'
|
library 'net.thauvin.erik:semver:1.0.1'
|
||||||
processor 'net.thauvin.erik.semver.VersionProcessor'
|
processor 'net.thauvin.erik.semver.VersionProcessor'
|
||||||
// sourcesDir 'src/generated/java'
|
// sourcesDir 'src/generated/java'
|
||||||
}
|
}
|
||||||
|
@ -219,8 +219,8 @@ To install and run from [Kobalt](http://beust.com/kobalt/), add the following to
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
dependencies {
|
dependencies {
|
||||||
apt("net.thauvin.erik:semver:1.0.0")
|
apt("net.thauvin.erik:semver:1.0.1")
|
||||||
compileOnly("net.thauvin.erik:semver:1.0.0")
|
compileOnly("net.thauvin.erik:semver:1.0.1")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ val example = project {
|
||||||
version = versionFor()
|
version = versionFor()
|
||||||
|
|
||||||
val mainClassName = "net.thauvin.erik.semver.example.Example"
|
val mainClassName = "net.thauvin.erik.semver.example.Example"
|
||||||
val processorJar = "net.thauvin.erik:semver:1.0.0"
|
val processorJar = "net.thauvin.erik:semver:1.0.1"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
apt(processorJar)
|
apt(processorJar)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue