mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2025-01-30 23:03:03 +01:00
Small improvements to versioning
This commit is contained in:
parent
10a2186231
commit
7a50f5af94
11
build.gradle
11
build.gradle
@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id "java-library"
|
||||
id "maven-publish"
|
||||
id "net.kyori.blossom" version "1.2.0"
|
||||
}
|
||||
|
||||
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
|
||||
@ -31,6 +32,10 @@ dependencies {
|
||||
//api "net.lenni0451.mcstructs:all:1.4.0" // Not yet used
|
||||
}
|
||||
|
||||
blossom {
|
||||
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/vialegacy/ViaLegacy.java")
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
@ -40,6 +45,12 @@ javadoc {
|
||||
failOnError = false
|
||||
}
|
||||
|
||||
jar {
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}" }
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
|
@ -6,4 +6,4 @@ org.gradle.configureondemand=true
|
||||
# Project properties
|
||||
maven_name=ViaLegacy
|
||||
maven_group=net.raphimc
|
||||
maven_version=2.0.1
|
||||
maven_version=2.0.2
|
||||
|
@ -5,6 +5,8 @@ import net.raphimc.vialegacy.platform.ViaLegacyPlatform;
|
||||
|
||||
public class ViaLegacy {
|
||||
|
||||
public static final String VERSION = "${version}";
|
||||
|
||||
private static ViaLegacyPlatform platform;
|
||||
private static ViaLegacyConfig config;
|
||||
|
||||
|
@ -72,7 +72,7 @@ public interface ViaLegacyPlatform {
|
||||
ViaLegacy.init(this, config);
|
||||
VersionEnum.init();
|
||||
|
||||
Via.getManager().getSubPlatforms().add("ViaLegacy-2.0.0");
|
||||
Via.getManager().getSubPlatforms().add("ViaLegacy-" + ViaLegacy.VERSION);
|
||||
|
||||
final ProtocolManager protocolManager = Via.getManager().getProtocolManager();
|
||||
protocolManager.registerProtocol(new Protocol1_8to1_7_6_10(), VersionEnum.r1_8.getProtocol(), VersionEnum.r1_7_6tor1_7_10.getProtocol());
|
||||
|
Loading…
Reference in New Issue
Block a user