fancyholograms-v2: add deployment information

This commit is contained in:
Oliver
2025-03-29 22:39:18 +01:00
parent b30d28f885
commit 45e57488f7
20 changed files with 585 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
Commit hash: %COMMIT_HASH%
Commit message: %COMMIT_MESSAGE%
Keep in mind that this is a snapshot version. Snapshot versions are **not** meant to be used in production. They are for **testing purposes only** and may contain bugs or incomplete features. Use at your own risk.

View File

@@ -0,0 +1 @@
This is a test dev build.

View File

@@ -0,0 +1 @@
2.4.2.134

View File

@@ -48,7 +48,7 @@ tasks {
create<MavenPublication>("maven") {
groupId = "de.oliver"
artifactId = "FancyHolograms"
version = project.version.toString()
version = getFHVersion()
from(project.components["java"])
}
}
@@ -68,4 +68,8 @@ tasks {
options.release.set(17)
}
}
fun getFHVersion(): String {
return file("../VERSION").readText()
}

View File

@@ -1,7 +1,5 @@
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import net.minecrell.pluginyml.paper.PaperPluginDescription
import java.io.BufferedReader
import java.io.InputStreamReader
plugins {
id("java-library")
@@ -31,12 +29,12 @@ val supportedVersions =
"1.21.2",
"1.21.3",
"1.21.4",
"1.21.5",
)
allprojects {
group = "de.oliver"
val buildId = System.getenv("BUILD_ID")
version = "2.4.2" + (if (buildId != null) ".$buildId" else "")
version = getFHVersion()
description = "Simple, lightweight and fast hologram plugin using display entities"
repositories {
@@ -83,7 +81,7 @@ paper {
bootstrapper = "de.oliver.fancyholograms.loaders.FancyHologramsBootstrapper"
loader = "de.oliver.fancyholograms.loaders.FancyHologramsLoader"
foliaSupported = true
version = rootProject.version.toString()
version = getFHVersion()
description = "Simple, lightweight and fast hologram plugin using display entities"
apiVersion = "1.19"
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
@@ -145,7 +143,7 @@ tasks {
val props = mapOf(
"description" to project.description,
"version" to project.version,
"version" to getFHVersion(),
"hash" to gitCommitHash.get(),
"build" to (System.getenv("BUILD_ID") ?: "").ifEmpty { "undefined" }
)
@@ -182,6 +180,10 @@ val gitCommitMessage: Provider<String> = providers.exec {
commandLine("git", "log", "-1", "--pretty=%B")
}.standardOutput.asText.map { it.trim() }
fun getFHVersion(): String {
return file("VERSION").readText()
}
hangarPublish {
publications.register("plugin") {
version = project.version as String
@@ -204,9 +206,9 @@ hangarPublish {
modrinth {
token.set(System.getenv("MODRINTH_PUBLISH_API_TOKEN"))
projectId.set("fancyholograms")
versionNumber.set(project.version.toString())
versionNumber.set(getFHVersion())
versionType.set("alpha")
uploadFile.set(file("build/libs/${project.name}-${project.version}.jar"))
uploadFile.set(file("build/libs/${project.name}-${getFHVersion()}.jar"))
gameVersions.addAll(supportedVersions)
loaders.add("paper")
loaders.add("folia")

View File

@@ -0,0 +1,28 @@
{
"project_id": "5QNgOj66",
"plugin_jar_path": "../../../../plugins/fancyholograms/build/libs/FancyHolograms-%VERSION%.jar",
"changelog_path": "../../../../plugins/fancyholograms/CHANGELOG.md",
"version_path": "../../../../plugins/fancyholograms/VERSION",
"supported_versions":[
"1.19.4",
"1.20",
"1.20.1",
"1.20.2",
"1.20.3",
"1.20.4",
"1.20.5",
"1.20.6",
"1.21",
"1.21.1",
"1.21.2",
"1.21.3",
"1.21.4",
"1.21.5"
],
"channel": "RELEASE",
"loaders": [
"paper",
"folia"
],
"featured": true
}

View File

@@ -0,0 +1,28 @@
{
"project_id": "5QNgOj66",
"plugin_jar_path": "../../../../plugins/fancyholograms/build/libs/FancyHolograms-%VERSION%.jar",
"changelog_path": "../../../../plugins/fancyholograms/CHANGELOG-SNAPSHOT.md",
"version_path": "../../../../plugins/fancyholograms/VERSION",
"supported_versions":[
"1.19.4",
"1.20",
"1.20.1",
"1.20.2",
"1.20.3",
"1.20.4",
"1.20.5",
"1.20.6",
"1.21",
"1.21.1",
"1.21.2",
"1.21.3",
"1.21.4",
"1.21.5"
],
"channel": "ALPHA",
"loaders": [
"paper",
"folia"
],
"featured": false
}