Cleanup
This commit is contained in:
parent
d19857bdd7
commit
5e6a29fbe0
7 changed files with 49 additions and 50 deletions
|
@ -14,7 +14,7 @@ mainClassName = 'com.example.Example'
|
|||
|
||||
defaultTasks 'run'
|
||||
|
||||
def semverProcessor = "net.thauvin.erik:semver:1.2.0"
|
||||
def semverProcessor = 'net.thauvin.erik:semver:1.2.0'
|
||||
|
||||
dependencies {
|
||||
annotationProcessor semverProcessor
|
||||
|
@ -41,8 +41,8 @@ run {
|
|||
}
|
||||
|
||||
semver {
|
||||
// properties = "example.properties"
|
||||
// keysPrefix = "example."
|
||||
// preReleaseKey = "release"
|
||||
// buildMetaKey = "meta"
|
||||
// properties = 'example.properties'
|
||||
// keysPrefix = 'example.'
|
||||
// preReleaseKey = 'release'
|
||||
// buildMetaKey = 'meta'
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
plugins {
|
||||
kotlin("jvm").version("1.5.0")
|
||||
application
|
||||
id("org.jetbrains.kotlin.kapt").version("1.5.0")
|
||||
id("net.thauvin.erik.gradle.semver").version("1.0.4")
|
||||
id("com.github.ben-manes.versions").version("0.38.0")
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions") version "0.38.0"
|
||||
id("net.thauvin.erik.gradle.semver") version "1.0.4"
|
||||
kotlin("jvm") version "1.5.0"
|
||||
kotlin("kapt") version "1.5.0"
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
|
|
|
@ -2,7 +2,7 @@ plugins {
|
|||
id 'java'
|
||||
id 'application'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'com.github.ben-manes.versions' version '0.38.0'
|
||||
id 'com.github.ben-manes.versions' version '0.39.0'
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
|
@ -36,10 +36,10 @@ application {
|
|||
}
|
||||
|
||||
semver {
|
||||
// properties = "example.properties"
|
||||
// keysPrefix = "example."
|
||||
// preReleaseKey = "release"
|
||||
// buildMetaKey = "meta"
|
||||
// properties = 'example.properties'
|
||||
// keysPrefix = 'example.'
|
||||
// preReleaseKey = 'release'
|
||||
// buildMetaKey = 'meta'
|
||||
}
|
||||
|
||||
incrementBuildMeta {
|
||||
|
@ -60,5 +60,5 @@ run {
|
|||
}
|
||||
|
||||
task echoVersion(type:Exec) {
|
||||
commandLine 'echo', "${-> project.version}"
|
||||
commandLine('echo', "${-> project.version}")
|
||||
}
|
||||
|
|
|
@ -4,10 +4,10 @@ import java.time.LocalDateTime
|
|||
import java.time.format.DateTimeFormatter
|
||||
|
||||
plugins {
|
||||
kotlin("jvm").version("1.5.0")
|
||||
application
|
||||
id("net.thauvin.erik.gradle.semver").version("1.0.4")
|
||||
id("com.github.ben-manes.versions").version("0.38.0")
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions") version "0.39.0"
|
||||
id("net.thauvin.erik.gradle.semver") version "1.0.4"
|
||||
kotlin("jvm") version "1.5.10"
|
||||
}
|
||||
|
||||
// ./gradlew
|
||||
|
|
|
@ -4,7 +4,7 @@ buildscript {
|
|||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "net.thauvin.erik.gradle:semver:1.0.5-beta"
|
||||
classpath 'net.thauvin.erik.gradle:semver:1.0.5-beta'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,9 +31,9 @@ repositories {
|
|||
}
|
||||
|
||||
application {
|
||||
println(project.version)
|
||||
println project.version
|
||||
project.afterEvaluate {
|
||||
println(project.version)
|
||||
println project.version
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,13 +47,13 @@ incrementBuildMeta {
|
|||
|
||||
run {
|
||||
doFirst {
|
||||
println("Version: $semver.major$semver.separator$semver.minor$semver.separator$semver.patch$semver.preReleasePrefix$semver.preRelease$semver.buildMetaPrefix$semver.buildMeta")
|
||||
println "Version: $semver.major$semver.separator$semver.minor$semver.separator$semver.patch$semver.preReleasePrefix$semver.preRelease$semver.buildMetaPrefix$semver.buildMeta"
|
||||
args = [f.name]
|
||||
}
|
||||
}
|
||||
|
||||
task echoVersion(type:Exec) {
|
||||
commandLine "echo", "${-> version}"
|
||||
commandLine('echo', "${-> version}")
|
||||
}
|
||||
|
||||
semver {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue