misc: Updated Blossom plugin usage
This commit is contained in:
parent
83c63503c4
commit
7371b217d7
@ -17,12 +17,16 @@ dependencies {
|
||||
testImplementation(libs.assertj)
|
||||
}
|
||||
|
||||
blossom {
|
||||
replaceTokenIn("src/main/java/io/github/_4drian3d/authmevelocity/common/Constants.java")
|
||||
replaceToken("{version}", project.version)
|
||||
replaceToken("{description}", project.description)
|
||||
replaceToken("{configurate}", libs.versions.configurate.get())
|
||||
replaceToken("{geantyref}", libs.versions.geantyref.get())
|
||||
sourceSets {
|
||||
main {
|
||||
blossom {
|
||||
javaSources {
|
||||
property("version", project.version.toString())
|
||||
property("configurate", libs.versions.configurate.get())
|
||||
property("geantyref", libs.versions.geantyref.get())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
@ -20,8 +20,7 @@ package io.github._4drian3d.authmevelocity.common;
|
||||
public final class Constants {
|
||||
private Constants() {}
|
||||
|
||||
public static final String VERSION = "{version}";
|
||||
public static final String DESCRIPTION = "{description}";
|
||||
public static final String CONFIGURATE = "{configurate}";
|
||||
public static final String GEANTYREF = "{geantyref}";
|
||||
}
|
||||
public static final String VERSION = "{{ version }}";
|
||||
public static final String CONFIGURATE = "{{ configurate }}";
|
||||
public static final String GEANTYREF = "{{ geantyref }}";
|
||||
}
|
@ -13,7 +13,7 @@ bstats = "3.0.2"
|
||||
shadow = "8.1.1"
|
||||
configurate = "4.1.2"
|
||||
adventure = "4.14.0"
|
||||
blossom = "1.3.1"
|
||||
blossom = "2.0.1"
|
||||
geantyref = "1.3.13"
|
||||
indra = "3.1.2"
|
||||
runtask = "2.1.0"
|
||||
|
@ -70,7 +70,7 @@ import java.util.stream.Stream;
|
||||
id = "authmevelocity",
|
||||
name = "AuthMeVelocity",
|
||||
url = "https://modrinth.com/plugin/authmevelocity",
|
||||
description = Constants.DESCRIPTION,
|
||||
description = "AuthMeReloaded Support for Velocity",
|
||||
version = Constants.VERSION,
|
||||
authors = {"xQuickGlare", "4drian3d"},
|
||||
dependencies = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user