feat: Implement blossom version replacement
This commit is contained in:
parent
4e191478f8
commit
1e7ae82bb7
@ -1,4 +1,5 @@
|
||||
plugins {
|
||||
id("net.kyori.blossom") version "1.3.1"
|
||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||
}
|
||||
|
||||
@ -26,3 +27,8 @@ tasks {
|
||||
}
|
||||
|
||||
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
|
||||
blossom {
|
||||
replaceTokenIn("src/main/java/me/adrianed/authmevelocity/common/Constants.java")
|
||||
replaceToken("{version}", project.version)
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
package me.adrianed.authmevelocity.common;
|
||||
|
||||
public final class Constants {
|
||||
public static final String VERSION = "{version}";
|
||||
public static final String CONFIGURATE = "4.1.2";
|
||||
public static final String GEANTYREF = "1.3.13";
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ bukkit {
|
||||
authors = listOf("xQuickGlare", "4drian3d")
|
||||
softDepend = listOf("MiniPlaceholders")
|
||||
depend = listOf("AuthMe")
|
||||
version = "4.0.0"
|
||||
version = project.version as String
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
Loading…
x
Reference in New Issue
Block a user