Skip to content

Commit

Permalink
Updated version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Mar 31, 2019
1 parent 6f2ce39 commit be84f36
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.classpath
.DS_Store
.gradle
.history
.kobalt
.nb-gradle
.project
Expand Down Expand Up @@ -45,4 +46,4 @@
ehthumbs.db
kobaltBuild
kobaltw*-test
Thumbs.db
Thumbs.db
10 changes: 10 additions & 0 deletions .idea/modules/examples-kotlin_main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/modules/examples-kotlin_test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ To install and run from [Maven](http://maven.apache.org/), configure an artifact
<dependency>
<groupId>net.thauvin.erik</groupId>
<artifactId>semver</artifactId>
<version>1.1.0-beta</version>
<version>1.1.1</version>
</dependency>
```

Expand All @@ -183,8 +183,8 @@ To install and run from [Gradle](https://gradle.org/), add the following to the

```gradle
dependencies {
annotationProcessor 'net.thauvin.erik:semver:1.1.0-beta'
compileOnly 'net.thauvin.erik:semver:1.1.0-beta'
annotationProcessor 'net.thauvin.erik:semver:1.1.1'
compileOnly 'net.thauvin.erik:semver:1.1.1'
}
```

Expand All @@ -208,8 +208,8 @@ To install and run from [Kobalt](http://beust.com/kobalt/), add the following to
```gradle
dependencies {
apt("net.thauvin.erik:semver:1.1.0-beta")
compileOnly("net.thauvin.erik:semver:1.1.0-beta")
apt("net.thauvin.erik:semver:1.1.1")
compileOnly("net.thauvin.erik:semver:1.1.1")
}
```
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ plugins {
id 'java'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
id 'com.github.ben-manes.versions' version '0.20.0'
id 'net.thauvin.erik.gradle.semver' version '0.9.8-beta'
id 'com.github.ben-manes.versions' version '0.21.0'
id 'net.thauvin.erik.gradle.semver' version '0.9.9-beta'
id 'com.github.spotbugs' version '1.7.1'
}

Expand Down Expand Up @@ -36,7 +36,7 @@ repositories {
}

dependencies {
implementation 'com.github.spullara.mustache.java:compiler:0.9.5'
implementation 'com.github.spullara.mustache.java:compiler:0.9.6'
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.12'
testImplementation 'org.testng:testng:6.14.3'
}
Expand Down
14 changes: 7 additions & 7 deletions docs/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ <h2 id="elements-properties">Elements &amp; Properties</h2>
<span class="dt">example.meta</span><span class="ot">=</span>
<span class="co"># ...</span></code></pre></div>
<blockquote>
<p>⚠️ <code>keysPrefix</code> is a new element in <code>1.1.0</code> and may break older versions when using custom property keys.<br />
<p>⚠️ <code>keysPrefix</code> is a new element staring in <code>1.1.0</code> and may break older versions when using custom property keys.<br />
⚡ A quick fix is to include <code>keysPrefix=&quot;&quot;</code> in the annotation to remove the default <code>version.</code> prefix.</p>
</blockquote>
<h2 id="usage-with-maven-grail-kobalt-and-kotlin">Usage with Maven, Grail, Kobalt and Kotlin</h2>
Expand All @@ -355,14 +355,14 @@ <h3 id="maven">Maven</h3>
<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;artifactId&gt;</span>semver<span class="kw">&lt;/artifactId&gt;</span>
<span class="kw">&lt;version&gt;</span>1.1.0-beta<span class="kw">&lt;/version&gt;</span>
<span class="kw">&lt;version&gt;</span>1.1.1<span class="kw">&lt;/version&gt;</span>
<span class="kw">&lt;/dependency&gt;</span></code></pre></div>
<h3 id="gradle">Gradle</h3>
<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>
<pre class="gradle"><code>dependencies {
annotationProcessor &#39;net.thauvin.erik:semver:1.1.0-beta&#39;
compileOnly &#39;net.thauvin.erik:semver:1.1.0-beta&#39;
annotationProcessor &#39;net.thauvin.erik:semver:1.1.1&#39;
compileOnly &#39;net.thauvin.erik:semver:1.1.1&#39;
}</code></pre>
<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>
Expand All @@ -373,8 +373,8 @@ <h4 id="class-source-generation">Class &amp; Source Generation</h4>
<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>
<pre class="gradle"><code>dependencies {
apt(&quot;net.thauvin.erik:semver:1.1.0-beta&quot;)
compileOnly(&quot;net.thauvin.erik:semver:1.1.0-beta&quot;)
apt(&quot;net.thauvin.erik:semver:1.1.1&quot;)
compileOnly(&quot;net.thauvin.erik:semver:1.1.1&quot;)
}</code></pre>
<p>Please look at the <a href="https://github.com/ethauvin/semver/blob/master/examples/kotlin/kobalt/src/Build.kt">Build.kt</a> file in the <a href="https://github.com/ethauvin/semver/tree/master/examples/kotlin">Kotlin example</a> module directory for a sample.</p>
<h3 id="kotlin">Kotlin</h3>
Expand All @@ -389,6 +389,6 @@ <h3 id="kotlin">Kotlin</h3>
<p>Please look at the <a href="https://github.com/ethauvin/semver/tree/master/examples/kotlin">Kotlin example</a> project for samples on using Gradle (<a href="https://github.com/ethauvin/semver/blob/master/examples/kotlin/build.gradle.kts">build.gradle.kts</a>) and Kobalt (<a href="https://github.com/ethauvin/semver/blob/master/examples/kotlin/kobalt/src/Build.kt">Build.kt</a>).</p>
<h2 id="auto-increment">Auto-Increment</h2>
<p>Incrementing the version is best left to your favorite build system. For a solution using Gradle, please have a look at the <a href="https://github.com/ethauvin/semver-gradle"><strong>Semver Version Plugin for Gradle</strong></a>.</p>
<p>There are also full <a href="https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor">examples</a> in both <a href="https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor/java">Java</a> and <a href="https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor">Kotlin</a> showing how to use both the plugin and annotation processor concurrently.</p>
<p>There are also full <a href="https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor">examples</a> in both <a href="https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor/java">Java</a> and <a href="https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor/kotlin">Kotlin</a> showing how to use both the plugin and annotation processor concurrently.</p>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'application'

defaultTasks 'run'

def semverProcessor = 'net.thauvin.erik:semver:1.1.0-beta'
def semverProcessor = 'net.thauvin.erik:semver:1.1.1'

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class GeneratedVersion {
public final static String BUILDMETA_PREFIX = "+";

public final static String PROJECT = "Example";
public final static Date BUILDDATE = new Date(1541197895495L);
public final static Date BUILDDATE = new Date(1553998304899L);
public final static int MAJOR = 2;
public final static int MINOR = 17;
public final static int PATCH = 52;
Expand Down
8 changes: 4 additions & 4 deletions examples/java/version.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#Generated by the Semver Plugin for Gradle
#Wed Jul 11 00:11:38 PDT 2018
version.prerelease=beta
version.minor=17
#Sat Mar 30 15:48:08 PDT 2019
version.buildmeta=007
version.patch=52
version.major=2
version.minor=17
version.patch=52
version.prerelease=beta
version.project=Example
2 changes: 1 addition & 1 deletion examples/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

defaultTasks(ApplicationPlugin.TASK_RUN_NAME)

var semverProcessor = "net.thauvin.erik:semver:1.1.0-beta"
var semverProcessor = "net.thauvin.erik:semver:1.1.1"

dependencies {
kapt(semverProcessor)
Expand Down
6 changes: 3 additions & 3 deletions kobalt/src/Build.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ val semver = project {
}

dependencies {
compile("com.github.spullara.mustache.java:compiler:0.9.5")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.2.10")
compileOnly("com.github.spotbugs:spotbugs-annotations:3.1.8")
compile("com.github.spullara.mustache.java:compiler:0.9.6")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.3.21")
compileOnly("com.github.spotbugs:spotbugs-annotations:3.1.12")
}

dependenciesTest {
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.thauvin.erik</groupId>
<artifactId>semver</artifactId>
<version>1.1.0-beta</version>
<version>1.1.1</version>
<name>semver</name>
<description>Semantic Version Annotation Processor</description>
<url>https://github.com/ethauvin/semver</url>
Expand All @@ -30,7 +30,7 @@
<dependency>
<groupId>com.github.spullara.mustache.java</groupId>
<artifactId>compiler</artifactId>
<version>0.9.5</version>
<version>0.9.6</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
Expand Down
6 changes: 3 additions & 3 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Generated by the Semver Plugin for Gradle
#Sat Nov 03 17:10:00 PDT 2018
#Sat Mar 30 18:10:32 PDT 2019
version.buildmeta=
version.major=1
version.minor=1
version.patch=0
version.prerelease=beta
version.patch=1
version.prerelease=

0 comments on commit be84f36

Please sign in to comment.