Added support for snapshot.
This commit is contained in:
parent
00c699972a
commit
0809e69dfc
6 changed files with 16 additions and 11 deletions
11
build.gradle
11
build.gradle
|
@ -27,7 +27,7 @@ final def mavenScmCon = 'https://github.com/ethauvin/semver.git'
|
||||||
final def mavenScmDevCon = 'git@github.com:ethauvin/semver.git'
|
final def mavenScmDevCon = 'git@github.com:ethauvin/semver.git'
|
||||||
|
|
||||||
ext.versions = [
|
ext.versions = [
|
||||||
spotbugs: '4.2.3'
|
spotbugs: '4.2.3'
|
||||||
]
|
]
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -102,10 +102,14 @@ publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "ossrh"
|
name = "ossrh"
|
||||||
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
project.afterEvaluate {
|
||||||
|
url = project.version.contains("SNAPSHOT")
|
||||||
|
? "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||||
|
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
}
|
||||||
credentials(PasswordCredentials)
|
credentials(PasswordCredentials)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
signing {
|
signing {
|
||||||
|
@ -118,6 +122,7 @@ javadoc {
|
||||||
title = "$mavenDescription $project.version API"
|
title = "$mavenDescription $project.version API"
|
||||||
}
|
}
|
||||||
options.with {
|
options.with {
|
||||||
|
source = '8'
|
||||||
tags = ['created']
|
tags = ['created']
|
||||||
author = true
|
author = true
|
||||||
//addBooleanOption('html4', true)
|
//addBooleanOption('html4', true)
|
||||||
|
|
|
@ -9,7 +9,7 @@ plugins {
|
||||||
|
|
||||||
defaultTasks 'run'
|
defaultTasks 'run'
|
||||||
|
|
||||||
final def semverProcessor = 'net.thauvin.erik:semver:1.2.0'
|
final def semverProcessor = 'net.thauvin.erik:semver:1.2.1-SNAPSHOT'
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
||||||
|
|
||||||
public final class ExampleVersion {
|
public final class ExampleVersion {
|
||||||
public static final String PROJECT = "Java Example";
|
public static final String PROJECT = "Java Example";
|
||||||
public static final Date BUILDDATE = new Date(1619704020405L);
|
public static final Date BUILDDATE = new Date(1620017348087L);
|
||||||
public static final String VERSION = "8.4.97-alpha+T800";
|
public static final String VERSION = "8.4.97-alpha+T800";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Date;
|
||||||
*/
|
*/
|
||||||
public final class GeneratedVersion {
|
public final class GeneratedVersion {
|
||||||
public static final String PROJECT = "Java App";
|
public static final String PROJECT = "Java App";
|
||||||
public static final Date BUILDDATE = new Date(1619704020387L);
|
public static final Date BUILDDATE = new Date(1620017348189L);
|
||||||
public static final int MAJOR = 11;
|
public static final int MAJOR = 11;
|
||||||
public static final int MINOR = 11;
|
public static final int MINOR = 11;
|
||||||
public static final int PATCH = 20;
|
public static final int PATCH = 20;
|
||||||
|
|
|
@ -13,7 +13,7 @@ plugins {
|
||||||
|
|
||||||
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
||||||
|
|
||||||
val semverProcessor = "net.thauvin.erik:semver:1.2.0"
|
val semverProcessor = "net.thauvin.erik:semver:1.2.1-SNAPSHOT"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
kapt(semverProcessor)
|
kapt(semverProcessor)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#Generated by the Semver Plugin for Gradle
|
#Generated by the Semver Plugin for Gradle
|
||||||
#Fri Apr 26 18:43:34 PDT 2019
|
#Sun May 02 21:54:48 PDT 2021
|
||||||
version.buildmeta=
|
version.buildmeta=
|
||||||
version.major=1
|
version.major=1
|
||||||
version.minor=2
|
version.minor=2
|
||||||
version.patch=0
|
version.patch=1
|
||||||
version.prerelease=
|
version.prerelease=SNAPSHOT
|
||||||
version.semver=1.2.0
|
version.semver=1.2.1-SNAPSHOT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue