fix: Updated blossom usage

This commit is contained in:
Adrian committed 2023-11-05 23:02:09 -05:00
1 parent 548d04b69e
commit 7aa0007bfc
3 files changed
+14 -6

No files matched your search

+3 -2
View File
@@ -3,9 +3,9 @@ metadata.format.version = "1.1"
[versions]
velocity = "3.2.0-SNAPSHOT"
paper = "1.19.3-R0.1-SNAPSHOT"
paper = "1.20.2-R0.1-SNAPSHOT"
blossom = "1.3.1"
blossom = "2.1.0"
shadow = "8.1.1"
runtask = "2.1.0"
pluginyml = "0.6.0"
@@ -42,3 +42,4 @@ shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runtask" }
runpaper = { id = "xyz.jpenilla.run-velocity", version.ref = "runtask" }
pluginyml = { id = "net.minecrell.plugin-yml.bukkit", version.ref = "pluginyml" }
idea-ext = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.1.7" }
+9 -3
View File
@@ -1,4 +1,5 @@
plugins {
alias(libs.plugins.idea.ext)
alias(libs.plugins.blossom)
}
@@ -10,7 +11,12 @@ dependencies {
implementation(projects.luckpermsExpansionCommon)
}
blossom {
replaceTokenIn("src/main/java/io/github/miniplaceholders/expansion/luckperms/velocity/Constants.java")
replaceToken("{version}", project.version)
sourceSets {
main {
blossom {
javaSources {
property("version", project.version.toString())
}
}
}
}
@@ -1,5 +1,6 @@
package io.github.miniplaceholders.expansion.luckperms.velocity;
public class Constants {
static final String VERSION = "{version}";
private Constants() {}
static final String VERSION = "{{ version }}";
}