File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/main/java/de/oceanlabs/mcp/mcinjector Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ repositories {
2424
2525jar {
2626 manifest. attributes(' Main-Class' : ' de.oceanlabs.mcp.mcinjector.MCInjector' )
27+ manifest. attributes(' Implementation-Version' : project. version)
2728}
2829shadowJar {
2930 classifier ' fatjar'
3031 manifest. attributes(' Main-Class' : ' de.oceanlabs.mcp.mcinjector.MCInjector' )
32+ manifest. attributes(' Implementation-Version' : project. version)
3133}
3234
3335artifacts {
Original file line number Diff line number Diff line change 1212public class MCInjector
1313{
1414 private final static Logger log = Logger .getLogger ("MCInjector" );
15- public static final String VERSION = "MCInjector v3.4 by Searge, LexManos, Fesh0r" ;
15+ public static final String VERSION ;
16+ static {
17+ String implVersion = MCInjector .class .getPackage ().getImplementationVersion ();
18+ if (implVersion == null ) {
19+ implVersion = "Unknown" ;
20+ }
21+ VERSION = "MCInjector v" + implVersion + " by Searge, LexManos, Fesh0r" ;
22+ }
1623
1724 public static void main (String [] args ) throws Exception
1825 {
You can’t perform that action at this time.
0 commit comments