Version 0.9.7-beta
This commit is contained in:
parent
a4e47cef0b
commit
56593230ac
28 changed files with 212 additions and 186 deletions
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id "net.thauvin.erik.gradle.semver" version "0.9.6-beta"
|
||||
id "net.thauvin.erik.gradle.semver" version "0.9.7-beta"
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
|
@ -13,7 +13,7 @@ mainClassName = 'com.example.Example'
|
|||
|
||||
defaultTasks 'run'
|
||||
|
||||
compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated")
|
||||
compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")
|
||||
|
||||
def semverProcessor = "net.thauvin.erik:semver:1.1.0-beta"
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ public final class GeneratedVersion {
|
|||
public final static String BUILDMETA_PREFIX = "+";
|
||||
|
||||
public final static String PROJECT = "";
|
||||
public final static Date BUILDDATE = new Date(1531013360196L);
|
||||
public final static Date BUILDDATE = new Date(1531208748879L);
|
||||
public final static int MAJOR = 2;
|
||||
public final static int MINOR = 1;
|
||||
public final static int PATCH = 1;
|
||||
public final static int PATCH = 2;
|
||||
public final static String PRERELEASE = "";
|
||||
public final static String BUILDMETA = "";
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Sat Jul 07 18:29:19 PDT 2018
|
||||
version.prerelease=
|
||||
#Fri Jul 13 15:21:02 PDT 2018
|
||||
version.buildmeta=
|
||||
version.patch=1
|
||||
version.major=2
|
||||
version.minor=1
|
||||
version.patch=2
|
||||
version.prerelease=
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
kotlin("jvm") version "1.2.50"
|
||||
application
|
||||
id("org.jetbrains.kotlin.kapt") version "1.2.50"
|
||||
id("net.thauvin.erik.gradle.semver") version "0.9.6-beta"
|
||||
id("net.thauvin.erik.gradle.semver") version "0.9.7-beta"
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Sat Jul 07 18:29:24 PDT 2018
|
||||
#Tue Jul 10 00:48:28 PDT 2018
|
||||
version.prerelease=
|
||||
version.buildmeta=
|
||||
version.patch=1
|
||||
version.patch=4
|
||||
version.major=11
|
||||
version.minor=2
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id "net.thauvin.erik.gradle.semver" version "0.9.6-beta"
|
||||
id "net.thauvin.erik.gradle.semver" version "0.9.7-beta"
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
// ./gradlew incrementPatch run
|
||||
// ./gradlew incrementMinor run
|
||||
// ./gradlew incrementMajor run
|
||||
// ./gradlew incrementBuildMeta run
|
||||
|
||||
mainClassName = 'App'
|
||||
|
||||
|
@ -37,6 +38,13 @@ semver {
|
|||
// buildMetaKey = "meta"
|
||||
}
|
||||
|
||||
incrementBuildMeta {
|
||||
doFirst {
|
||||
// buildMeta = sprintf("%03d", (buildMeta as Integer) + 1)
|
||||
buildMeta = new Date().format("yyyyMMddHHmmss")
|
||||
}
|
||||
}
|
||||
|
||||
run {
|
||||
doFirst {
|
||||
println "Version: $version"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Sun Jul 01 12:21:40 PDT 2018
|
||||
example.major=1
|
||||
example.release=beta
|
||||
example.release=alpha
|
||||
example.meta=
|
||||
example.minor=1
|
||||
example.patch=1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Mon Jul 09 17:13:03 PDT 2018
|
||||
version.prerelease=
|
||||
version.buildmeta=
|
||||
version.patch=5
|
||||
#Fri Jul 13 15:27:29 PDT 2018
|
||||
version.buildmeta=20180713152249
|
||||
version.major=1
|
||||
version.minor=1
|
||||
version.patch=8
|
||||
version.prerelease=alpha
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
import net.thauvin.erik.gradle.semver.SemverConfig
|
||||
import net.thauvin.erik.gradle.semver.SemverIncrementBuildMetaTask
|
||||
import java.lang.String.format
|
||||
import java.time.LocalDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version "1.2.50"
|
||||
application
|
||||
id("net.thauvin.erik.gradle.semver") version "0.9.6-beta"
|
||||
id("net.thauvin.erik.gradle.semver") version "0.9.7-beta"
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
|
@ -38,6 +42,13 @@ tasks {
|
|||
useTestNG()
|
||||
}
|
||||
|
||||
val incrementBuildMeta by getting(SemverIncrementBuildMetaTask::class) {
|
||||
doFirst {
|
||||
// buildMeta = format("%03d", buildMeta.toInt() + 1)
|
||||
buildMeta = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))
|
||||
}
|
||||
}
|
||||
|
||||
val run by getting(JavaExec::class) {
|
||||
doFirst {
|
||||
println("Version: $version")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Sun Jul 01 20:17:52 PDT 2018
|
||||
example.major=1
|
||||
example.release=
|
||||
example.release=beta
|
||||
example.meta=
|
||||
example.minor=0
|
||||
example.patch=0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Sat Jul 07 18:29:14 PDT 2018
|
||||
version.prerelease=
|
||||
version.buildmeta=
|
||||
version.patch=1
|
||||
#Fri Jul 13 15:52:43 PDT 2018
|
||||
version.buildmeta=20180713155232
|
||||
version.major=1
|
||||
version.minor=2
|
||||
version.patch=4
|
||||
version.prerelease=beta
|
||||
|
|
|
@ -8,7 +8,7 @@ buildscript {
|
|||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath "net.thauvin.erik.gradle:semver:0.9.6-beta"
|
||||
classpath "net.thauvin.erik.gradle:semver:0.9.7-beta"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,13 @@ incrementPatch {
|
|||
}
|
||||
}
|
||||
|
||||
incrementBuildMeta {
|
||||
doFirst {
|
||||
//buildMeta = sprintf("%03d", (buildMeta as Integer) + 1)
|
||||
buildMeta = new Date().format("yyyyMMddHHmmss")
|
||||
}
|
||||
}
|
||||
|
||||
run {
|
||||
//dependsOn("incrementPatch")
|
||||
doFirst {
|
||||
|
@ -52,4 +59,4 @@ semver {
|
|||
properties = "$projectDir/${f.name}"
|
||||
keysPrefix = f.name.substring(0, f.name.indexOf(".") + 1)
|
||||
buildMetaKey = "meta"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue