Update version format

feat/data-edit-commands
William278 2 years ago
parent 847790c514
commit ff1ace8342

@ -6,7 +6,7 @@ plugins {
}
group 'net.william278'
version "$ext.plugin_version+${versionMetadata()}"
version "$ext.plugin_version-${versionMetadata()}"
ext {
set 'version', version.toString()
@ -102,5 +102,5 @@ def versionMetadata() {
if (grgit == null) {
return System.getenv("GITHUB_RUN_NUMBER") ? 'build.' + System.getenv("GITHUB_RUN_NUMBER") : 'unknown'
}
return 'rev.' + grgit.head().abbreviatedId + (grgit.status().clean ? '' : '-indev')
return grgit.head().abbreviatedId + (grgit.status().clean ? '' : '-indev')
}

@ -9,7 +9,7 @@ import java.util.regex.Pattern;
public class Version implements Comparable<Version> {
private final static String VERSION_SEPARATOR = ".";
private final static String MINECRAFT_META_SEPARATOR = "-";
private final static String PLUGIN_META_SEPARATOR = "+";
private final static String PLUGIN_META_SEPARATOR = "-";
private int[] versions = new int[]{};
@NotNull

@ -3,7 +3,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true
javaVersion=16
plugin_version=2.0.2
plugin_version=2.1
plugin_archive=husksync
jedis_version=4.2.3

Loading…
Cancel
Save