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