diff --git a/common/src/main/java/us/myles/ViaVersion/commands/defaultsubs/DumpSubCmd.java b/common/src/main/java/us/myles/ViaVersion/commands/defaultsubs/DumpSubCmd.java index 4a1e29fa5..2f6325fc3 100644 --- a/common/src/main/java/us/myles/ViaVersion/commands/defaultsubs/DumpSubCmd.java +++ b/common/src/main/java/us/myles/ViaVersion/commands/defaultsubs/DumpSubCmd.java @@ -3,6 +3,7 @@ package us.myles.ViaVersion.commands.defaultsubs; import com.google.common.io.CharStreams; import com.google.gson.JsonObject; import net.md_5.bungee.api.ChatColor; +import us.myles.ViaVersion.ViaManager; import us.myles.ViaVersion.api.Via; import us.myles.ViaVersion.api.command.ViaCommandSender; import us.myles.ViaVersion.api.command.ViaSubCommand; @@ -43,7 +44,8 @@ public class DumpSubCmd extends ViaSubCommand { ProtocolRegistry.getSupportedVersions(), Via.getPlatform().getPlatformName(), Via.getPlatform().getPlatformVersion(), - Via.getPlatform().getPluginVersion() + Via.getPlatform().getPluginVersion(), + ViaManager.class.getPackage().getImplementationVersion() ); Map configuration = Via.getPlatform().getConfigurationProvider().getValues(); diff --git a/common/src/main/java/us/myles/ViaVersion/dump/VersionInfo.java b/common/src/main/java/us/myles/ViaVersion/dump/VersionInfo.java index 0ab5711a4..2f05f2228 100644 --- a/common/src/main/java/us/myles/ViaVersion/dump/VersionInfo.java +++ b/common/src/main/java/us/myles/ViaVersion/dump/VersionInfo.java @@ -10,8 +10,10 @@ public class VersionInfo { private final String platformName; private final String platformVersion; private final String pluginVersion; + private final String implementationVersion; - public VersionInfo(String javaVersion, String operatingSystem, int serverProtocol, Set enabledProtocols, String platformName, String platformVersion, String pluginVersion) { + public VersionInfo(String javaVersion, String operatingSystem, int serverProtocol, Set enabledProtocols, + String platformName, String platformVersion, String pluginVersion, String implementationVersion) { this.javaVersion = javaVersion; this.operatingSystem = operatingSystem; this.serverProtocol = serverProtocol; @@ -19,6 +21,7 @@ public class VersionInfo { this.platformName = platformName; this.platformVersion = platformVersion; this.pluginVersion = pluginVersion; + this.implementationVersion = implementationVersion; } public String getJavaVersion() { @@ -48,5 +51,9 @@ public class VersionInfo { public String getPluginVersion() { return pluginVersion; } + + public String getImplementationVersion() { + return implementationVersion; + } } diff --git a/jar/pom.xml b/jar/pom.xml index 7cbdb4324..ae135751c 100644 --- a/jar/pom.xml +++ b/jar/pom.xml @@ -34,13 +34,42 @@ - + + + net.md-5 + scriptus + 0.3.2 + + git-ViaVersion-${project.version}:%s + + + + initialize + + describe + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + + + ${describe} + + + + org.apache.maven.plugins maven-shade-plugin - 2.4.3 + 3.2.2 false false