mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-13 15:39:18 +08:00
add a cool banner with useful info
Signed-off-by: MiniDigger <admin@minidigger.me>
This commit is contained in:
parent
61bca4fca9
commit
ecb8b9f059
32
pom.xml
32
pom.xml
@ -216,6 +216,19 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>banner.txt</include>
|
||||
</includes>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
@ -277,6 +290,25 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>pl.project13.maven</groupId>
|
||||
<artifactId>git-commit-id-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>revision</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<verbose>false</verbose>
|
||||
<dateFormat>yyyy-MM-dd-HH:mm:ss</dateFormat>
|
||||
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
|
||||
<generateGitPropertiesFile>false</generateGitPropertiesFile>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
10
src/main/resources/banner.txt
Normal file
10
src/main/resources/banner.txt
Normal file
@ -0,0 +1,10 @@
|
||||
::: ::: ::: :::: ::: :::::::: ::: :::::::::
|
||||
:+: :+: :+: :+: :+:+: :+: :+: :+: :+: :+: :+: :+:
|
||||
+:+ +:+ +:+ +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ +:+
|
||||
+#++:++#++ +#++:++#++: +#+ +:+ +#+ :#: +#++:++#++: +#++:++#:
|
||||
+#+ +#+ +#+ +#+ +#+ +#+#+# +#+ +#+# +#+ +#+ +#+ +#+
|
||||
#+# #+# #+# #+# #+# #+#+# #+# #+# #+# #+# #+# #+#
|
||||
### ### ### ### ### #### ######## ### ### ### ###
|
||||
|
||||
Hangar version @project.version@, running commit @git.commit.id.abbrev@, committed on @git.commit.time@
|
||||
@git.commit.user.name@ <@git.commit.user.email@>: @git.commit.message.short@
|
Loading…
x
Reference in New Issue
Block a user