mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancyholograms-v2: add deployment information
This commit is contained in:
5
plugins/fancyholograms-v2/CHANGELOG-SNAPSHOT.md
Normal file
5
plugins/fancyholograms-v2/CHANGELOG-SNAPSHOT.md
Normal 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.
|
||||
1
plugins/fancyholograms-v2/CHANGELOG.md
Normal file
1
plugins/fancyholograms-v2/CHANGELOG.md
Normal file
@@ -0,0 +1 @@
|
||||
This is a test dev build.
|
||||
1
plugins/fancyholograms-v2/VERSION
Normal file
1
plugins/fancyholograms-v2/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
2.4.2.134
|
||||
@@ -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()
|
||||
}
|
||||
@@ -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")
|
||||
|
||||
28
plugins/fancyholograms-v2/release_deployment_config.json
Normal file
28
plugins/fancyholograms-v2/release_deployment_config.json
Normal 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
|
||||
}
|
||||
28
plugins/fancyholograms-v2/snapshot_deployment_config.json
Normal file
28
plugins/fancyholograms-v2/snapshot_deployment_config.json
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user