mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-05 04:48:02 +00:00
include build date
This commit is contained in:
parent
dd38532501
commit
7ba54ebfe2
@ -1,3 +1,4 @@
|
|||||||
|
import java.time.Instant
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
@ -48,6 +49,7 @@ blossom {
|
|||||||
commit = "$commitStdout".replace("\n", "") // for some reason it adds new line so remove it.
|
commit = "$commitStdout".replace("\n", "") // for some reason it adds new line so remove it.
|
||||||
commitStdout.close()
|
commitStdout.close()
|
||||||
replaceToken("@git_commit@", commit)
|
replaceToken("@git_commit@", commit)
|
||||||
|
replaceToken("@build_date@", "${Instant.now().epochSecond}")
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
@ -15,6 +15,7 @@ public class Constants {
|
|||||||
|
|
||||||
public final static String VERSION = "@version@";
|
public final static String VERSION = "@version@";
|
||||||
public final static String GIT_COMMIT = "@git_commit@";
|
public final static String GIT_COMMIT = "@git_commit@";
|
||||||
|
public final static long BUILD_DATE = Long.parseLong("@build_date@");
|
||||||
|
|
||||||
public static String getGithubCommitLink() {
|
public static String getGithubCommitLink() {
|
||||||
return "https://github.com/ProxioDev/RedisBungee/commit/" + GIT_COMMIT;
|
return "https://github.com/ProxioDev/RedisBungee/commit/" + GIT_COMMIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user