1.0 release prep.
This commit is contained in:
parent
06328f155d
commit
aaffb710f1
9 changed files with 72 additions and 37 deletions
|
@ -9,6 +9,7 @@ defaultTasks 'run'
|
|||
|
||||
def isRelease = 'release' in gradle.startParameter.taskNames
|
||||
def deployDir = 'deploy'
|
||||
def processorJar = 'net.thauvin.erik:semver:1.0.0'
|
||||
|
||||
// Get version from properties file. Increment patch if specified.
|
||||
def getVersion(isIncrement = false) {
|
||||
|
@ -45,13 +46,13 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'net.thauvin.erik:semver:+'
|
||||
compileOnly processorJar
|
||||
}
|
||||
|
||||
annotationProcessor {
|
||||
// Update version, increment on release.
|
||||
project.version = getVersion(isRelease)
|
||||
library 'net.thauvin.erik:semver:+'
|
||||
library processorJar
|
||||
processor 'net.thauvin.erik.semver.VersionProcessor'
|
||||
// sourcesDir 'src/generated/java'
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import com.beust.kobalt.*
|
||||
import com.beust.kobalt.plugin.application.application
|
||||
import com.beust.kobalt.plugin.apt.apt
|
||||
import com.beust.kobalt.plugin.application.*
|
||||
import com.beust.kobalt.plugin.apt.*
|
||||
import com.beust.kobalt.plugin.publish.*
|
||||
import com.beust.kobalt.plugin.packaging.*
|
||||
import com.beust.kobalt.project
|
||||
import java.io.FileInputStream
|
||||
import java.util.*
|
||||
|
||||
// .kobaltw run
|
||||
|
||||
val bs = buildScript {
|
||||
//repos(file("K:/maven/repository/"), localMaven())
|
||||
repos(localMaven())
|
||||
}
|
||||
|
||||
fun StringBuilder.prepend(s: String): StringBuilder {
|
||||
|
@ -41,7 +41,7 @@ val example = project {
|
|||
version = versionFor()
|
||||
|
||||
val mainClassName = "net.thauvin.erik.semver.example.Example"
|
||||
val processorJar = "net.thauvin.erik:semver:"
|
||||
val processorJar = "net.thauvin.erik:semver:1.0.0"
|
||||
|
||||
dependencies {
|
||||
apt(processorJar)
|
||||
|
|
|
@ -1 +1 @@
|
|||
kobalt.version=1.0.83
|
||||
kobalt.version=1.0.85
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class GeneratedVersion {
|
|||
public final static String BUILDMETA_PREFIX = "+";
|
||||
|
||||
public final static String PROJECT = "Example";
|
||||
public final static Date BUILDDATE = new Date(1493251035937L);
|
||||
public final static Date BUILDDATE = new Date(1493952813608L);
|
||||
public final static int MAJOR = 2;
|
||||
public final static int MINOR = 17;
|
||||
public final static int PATCH = 52;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue