Updated gradle build files with new syntax, etc.

This commit is contained in:
Erik C. Thauvin 2017-03-24 16:23:14 -07:00
parent 5562a693a9
commit 3001a4f8f0
5 changed files with 34 additions and 30 deletions

View file

@ -1,5 +1,5 @@
plugins {
id "com.ewerk.gradle.plugins.annotation-processor" version "1.0.2"
id "com.ewerk.gradle.plugins.annotation-processor" version "1.0.3"
}
apply plugin: 'java'
apply plugin: 'idea'
@ -45,13 +45,13 @@ repositories {
}
dependencies {
compileOnly 'net.thauvin.erik:semver:0.9.7'
compileOnly 'net.thauvin.erik:semver:+'
}
annotationProcessor {
// Update version, increment on release.
project.version = getVersion(isRelease)
library 'net.thauvin.erik:semver:0.9.7'
library 'net.thauvin.erik:semver:+'
processor 'net.thauvin.erik.semver.VersionProcessor'
// sourcesDir 'src/generated/java'
}
@ -81,10 +81,12 @@ task deploy(dependsOn: ['build', 'copyToDeploy']) {
mustRunAfter clean
}
task release(dependsOn: ['wrapper', 'clean', 'deploy']) << {
group = 'Publishing'
description = 'Releases new version.'
isRelease = true
task release(dependsOn: ['wrapper', 'clean', 'deploy']) {
doLast {
group = 'Publishing'
description = 'Releases new version.'
isRelease = true
}
}
task wrapper(type: Wrapper) {

View file

@ -14,7 +14,7 @@ import java.util.Date;
*/
public final class GeneratedVersion {
private final static String buildmeta = "";
private final static Date date = new Date(1468888435317L);
private final static Date date = new Date(1490396459441L);
private final static int major = 3;
private final static int minor = 1;
private final static int patch = 49;