misc: Updated Blossom plugin usage

This commit is contained in:
Adrian 2023-09-03 22:34:06 -05:00
parent 83c63503c4
commit 7371b217d7
No known key found for this signature in database
GPG Key ID: FB8EF84DCE1BE452
4 changed files with 16 additions and 13 deletions

View File

@ -17,12 +17,16 @@ dependencies {
testImplementation(libs.assertj) testImplementation(libs.assertj)
} }
sourceSets {
main {
blossom { blossom {
replaceTokenIn("src/main/java/io/github/_4drian3d/authmevelocity/common/Constants.java") javaSources {
replaceToken("{version}", project.version) property("version", project.version.toString())
replaceToken("{description}", project.description) property("configurate", libs.versions.configurate.get())
replaceToken("{configurate}", libs.versions.configurate.get()) property("geantyref", libs.versions.geantyref.get())
replaceToken("{geantyref}", libs.versions.geantyref.get()) }
}
}
} }
tasks { tasks {

View File

@ -20,8 +20,7 @@ package io.github._4drian3d.authmevelocity.common;
public final class Constants { public final class Constants {
private Constants() {} private Constants() {}
public static final String VERSION = "{version}"; public static final String VERSION = "{{ version }}";
public static final String DESCRIPTION = "{description}"; public static final String CONFIGURATE = "{{ configurate }}";
public static final String CONFIGURATE = "{configurate}"; public static final String GEANTYREF = "{{ geantyref }}";
public static final String GEANTYREF = "{geantyref}";
} }

View File

@ -13,7 +13,7 @@ bstats = "3.0.2"
shadow = "8.1.1" shadow = "8.1.1"
configurate = "4.1.2" configurate = "4.1.2"
adventure = "4.14.0" adventure = "4.14.0"
blossom = "1.3.1" blossom = "2.0.1"
geantyref = "1.3.13" geantyref = "1.3.13"
indra = "3.1.2" indra = "3.1.2"
runtask = "2.1.0" runtask = "2.1.0"

View File

@ -70,7 +70,7 @@ import java.util.stream.Stream;
id = "authmevelocity", id = "authmevelocity",
name = "AuthMeVelocity", name = "AuthMeVelocity",
url = "https://modrinth.com/plugin/authmevelocity", url = "https://modrinth.com/plugin/authmevelocity",
description = Constants.DESCRIPTION, description = "AuthMeReloaded Support for Velocity",
version = Constants.VERSION, version = Constants.VERSION,
authors = {"xQuickGlare", "4drian3d"}, authors = {"xQuickGlare", "4drian3d"},
dependencies = { dependencies = {