3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-25 15:50:12 +01:00

[ci skip] Update Blossom

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-09-06 11:30:10 +10:00
Ursprung e2546b8471
Commit 2f373adad4
3 geänderte Dateien mit 23 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -1,10 +1,17 @@
plugins { plugins {
id("net.kyori.blossom") id("net.kyori.blossom")
id("org.jetbrains.gradle.plugin.idea-ext")
} }
sourceSets {
main {
blossom { blossom {
replaceToken("\$VERSION", project.version) javaSources {
replaceToken("\$IMPL_VERSION", "git-ViaBackwards-${project.version}:${rootProject.latestCommitHash()}") property("version", project.version.toString())
property("impl_version", "git-ViaBackwards-${project.version}:${rootProject.latestCommitHash()}")
}
}
}
} }
dependencies { dependencies {

Datei anzeigen

@ -17,7 +17,16 @@
*/ */
package com.viaversion.viabackwards.utils; package com.viaversion.viabackwards.utils;
public class VersionInfo { public final class VersionInfo {
public static final String VERSION = "$VERSION"; public static final String VERSION = "{{ version }}";
private static final String IMPLEMENTATION_VERSION = "{{ impl_version }}";
public static String getVersion() {
return VERSION;
}
public static String getImplementationVersion() {
return IMPLEMENTATION_VERSION;
}
} }

Datei anzeigen

@ -15,7 +15,8 @@ dependencyResolutionManagement {
pluginManagement { pluginManagement {
plugins { plugins {
id("net.kyori.blossom") version "1.3.1" id("net.kyori.blossom") version "2.0.1"
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.7"
id("com.github.johnrengelman.shadow") version "8.1.1" id("com.github.johnrengelman.shadow") version "8.1.1"
} }
} }