forked from StarOpenSource/Engine
Add EngineConfiguration#versioningString
This commit is contained in:
parent
87a7603c2e
commit
ae3075770d
2 changed files with 16 additions and 0 deletions
|
@ -27,6 +27,8 @@ import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Annotation for registering events on methods.
|
* Annotation for registering events on methods.
|
||||||
|
*
|
||||||
|
* @since 1-alpha0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
|
|
@ -112,6 +112,19 @@ public final class EngineInformation {
|
||||||
*/
|
*/
|
||||||
private String versioningFork;
|
private String versioningFork;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides the engine's full version string.
|
||||||
|
*
|
||||||
|
* @since 1-alpha1
|
||||||
|
*
|
||||||
|
* -- GETTER --
|
||||||
|
* Provides the engine's full version string.
|
||||||
|
*
|
||||||
|
* @return engine version string
|
||||||
|
* @since 1-alpha1
|
||||||
|
*/
|
||||||
|
private String versioningString;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides the {@code dirty} value (i.e. if the source tree has been modified).
|
* Provides the {@code dirty} value (i.e. if the source tree has been modified).
|
||||||
|
@ -418,6 +431,7 @@ public final class EngineInformation {
|
||||||
versioningType = VersionType.valueOf(gradleParser.getString("versioningType").toUpperCase());
|
versioningType = VersionType.valueOf(gradleParser.getString("versioningType").toUpperCase());
|
||||||
versioningTyperelease = gradleParser.getInteger("versioningTyperelease", true);
|
versioningTyperelease = gradleParser.getInteger("versioningTyperelease", true);
|
||||||
versioningFork = gradleParser.getString("versioningFork");
|
versioningFork = gradleParser.getString("versioningFork");
|
||||||
|
versioningString = "v" + versioningVersion + "-" + (versioningType == VersionType.RELEASE_CANDIDATE ? "releasecandidate" : versioningType.name()) + versioningTyperelease + versioningFork;
|
||||||
|
|
||||||
dependencyLombok = gradleParser.getString("dependencyLombok");
|
dependencyLombok = gradleParser.getString("dependencyLombok");
|
||||||
dependencyJetbrainsAnnotations = gradleParser.getString("dependencyJetbrainsAnnotations");
|
dependencyJetbrainsAnnotations = gradleParser.getString("dependencyJetbrainsAnnotations");
|
||||||
|
|
Loading…
Reference in a new issue