Version 1.0.1

This commit is contained in:
Erik C. Thauvin 2017-05-30 15:43:51 -07:00
parent 4493d6b0e6
commit d99a9ba6bd
3 changed files with 19 additions and 19 deletions

View file

@ -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">&lt;dependency&gt;</span> <div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw">&lt;dependency&gt;</span>
<span class="kw">&lt;groupId&gt;</span>net.thauvin.erik<span class="kw">&lt;/groupId&gt;</span> <span class="kw">&lt;groupId&gt;</span>net.thauvin.erik<span class="kw">&lt;/groupId&gt;</span>
<span class="kw">&lt;artifactId&gt;</span>semver<span class="kw">&lt;/artifactId&gt;</span> <span class="kw">&lt;artifactId&gt;</span>semver<span class="kw">&lt;/artifactId&gt;</span>
<span class="kw">&lt;version&gt;</span>1.0.0<span class="kw">&lt;/version&gt;</span> <span class="kw">&lt;version&gt;</span>1.0.1<span class="kw">&lt;/version&gt;</span>
<span class="kw">&lt;/dependency&gt;</span></code></pre></div> <span class="kw">&lt;/dependency&gt;</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 &#39;net.thauvin.erik:semver:1.0.0&#39; compileOnly &#39;net.thauvin.erik:semver:1.0.1&#39;
}</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 &amp; Source Generation</h4> <h4 id="class-source-generation">Class &amp; 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 &#39;net.thauvin.erik:semver:1.0.0&#39; compileOnly &#39;net.thauvin.erik:semver:1.0.1&#39;
} }
annotationProcessor { annotationProcessor {
library &#39;net.thauvin.erik:semver:1.0.0&#39; library &#39;net.thauvin.erik:semver:1.0.1&#39;
processor &#39;net.thauvin.erik.semver.VersionProcessor&#39; processor &#39;net.thauvin.erik.semver.VersionProcessor&#39;
// sourcesDir &#39;src/generated/java&#39; // sourcesDir &#39;src/generated/java&#39;
} }
@ -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(&quot;net.thauvin.erik:semver:1.0.0&quot;) apt(&quot;net.thauvin.erik:semver:1.0.1&quot;)
compileOnly(&quot;net.thauvin.erik:semver:1.0.0&quot;) compileOnly(&quot;net.thauvin.erik:semver:1.0.1&quot;)
}</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>

View file

@ -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")
} }
``` ```

View file

@ -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)