Skip to content

Commit

Permalink
build: remove plugin-yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Nov 15, 2023
1 parent 6ebe20a commit 944a53f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[plugins]
blossom = { id = "net.kyori.blossom", version = "2.1.0" }
localization = { id = "ca.stellardrift.localization", version = "6.1.0" }
pluginYml-bukkit = { id = "net.minecrell.plugin-yml.bukkit", version = "0.5.3" }
runPaper = { id = "xyz.jpenilla.run-paper", version = "2.2.0" }
sponge-gradle = { id = "org.spongepowered.gradle.plugin", version = "2.2.0" }

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ plugins {

rootProject.name = "TabTPS"

sequenceOf(
listOf(
"common",
"spigot",
"sponge",
Expand Down
21 changes: 11 additions & 10 deletions spigot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import xyz.jpenilla.runpaper.task.RunServer

plugins {
id("tabtps.platform")
alias(libs.plugins.pluginYml.bukkit)
alias(libs.plugins.runPaper)
}

Expand Down Expand Up @@ -78,16 +77,18 @@ tasks {
createVersionedRun(version, javaVersion)
}
}
}

bukkit {
main = "xyz.jpenilla.tabtps.spigot.TabTPSPlugin"
name = rootProject.name
apiVersion = "1.13"
website = "https://github.com/jpenilla/TabTPS"
loadBefore = listOf("Essentials")
softDepend = listOf("PlaceholderAPI", "ViaVersion")
authors = listOf("jmp")
processResources {
val replacements = mapOf(
"version" to version.toString(),
"description" to project.description,
"github" to "https://github.com/jpenilla/TabTPS"
)
inputs.properties(replacements)
filesMatching("plugin.yml") {
expand(replacements)
}
}
}

tabTPSPlatform {
Expand Down
13 changes: 13 additions & 0 deletions spigot/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: TabTPS
version: $version
main: xyz.jpenilla.tabtps.spigot.TabTPSPlugin
description: $description
authors:
- jmp
website: $github
api-version: 1.13
softdepend:
- PlaceholderAPI
- ViaVersion
loadbefore:
- Essentials

0 comments on commit 944a53f

Please sign in to comment.