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