Added examples.
This commit is contained in:
parent
877e4bd622
commit
474263452f
85 changed files with 2429 additions and 107 deletions
52
examples/annotation-processor/kotlin/build.gradle.kts
Normal file
52
examples/annotation-processor/kotlin/build.gradle.kts
Normal file
|
@ -0,0 +1,52 @@
|
|||
import net.thauvin.erik.gradle.semver.SemverConfig
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath("net.thauvin.erik.gradle:semver:0.9.2-beta")
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version "1.2.50"
|
||||
application
|
||||
id("org.jetbrains.kotlin.kapt") version "1.2.50"
|
||||
}
|
||||
|
||||
apply {
|
||||
plugin("net.thauvin.erik.gradle.semver")
|
||||
}
|
||||
|
||||
|
||||
// ./gradlew
|
||||
// ./gradlew runJava
|
||||
// ./gradlew run runJava
|
||||
|
||||
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
||||
|
||||
var semverProcessor = "net.thauvin.erik:semver:1.1.0-beta+2"
|
||||
|
||||
dependencies {
|
||||
kapt(semverProcessor)
|
||||
compileOnly(semverProcessor)
|
||||
|
||||
compile(kotlin("stdlib"))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "com.example.Main"
|
||||
}
|
||||
|
||||
configure<SemverConfig> {
|
||||
properties = "example.properties"
|
||||
keysPrefix = "example."
|
||||
preReleaseKey = "release"
|
||||
buildMetaKey = "meta"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue