Added support for snapshot.
This commit is contained in:
parent
00c699972a
commit
0809e69dfc
6 changed files with 16 additions and 11 deletions
|
@ -102,7 +102,11 @@ publishing {
|
|||
repositories {
|
||||
maven {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
@ -118,6 +122,7 @@ javadoc {
|
|||
title = "$mavenDescription $project.version API"
|
||||
}
|
||||
options.with {
|
||||
source = '8'
|
||||
tags = ['created']
|
||||
author = true
|
||||
//addBooleanOption('html4', true)
|
||||
|
|
|
@ -9,7 +9,7 @@ plugins {
|
|||
|
||||
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
|
||||
targetCompatibility = 1.8
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
|||
|
||||
public final class ExampleVersion {
|
||||
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";
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Date;
|
|||
*/
|
||||
public final class GeneratedVersion {
|
||||
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 MINOR = 11;
|
||||
public static final int PATCH = 20;
|
||||
|
|
|
@ -13,7 +13,7 @@ plugins {
|
|||
|
||||
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 {
|
||||
kapt(semverProcessor)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#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.major=1
|
||||
version.minor=2
|
||||
version.patch=0
|
||||
version.prerelease=
|
||||
version.semver=1.2.0
|
||||
version.patch=1
|
||||
version.prerelease=SNAPSHOT
|
||||
version.semver=1.2.1-SNAPSHOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue