Skip to content

Commit

Permalink
Use a variable for the paper API version
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Jul 24, 2024
1 parent 0da7187 commit 1daeef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ version = "1.0.0-SNAPSHOT"
description = "Test plugin for paperweight-userdev"

val javaVersion = 21
val paperApiVersion = "1.21"

java {
// Configure the java toolchain. This allows gradle to auto-provision JDK 21 on systems that only have JDK 11 installed for example.
Expand All @@ -32,7 +33,7 @@ tasks.assemble {
*/

dependencies {
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
paperweight.paperDevBundle(paperApiVersion + "-R0.1-SNAPSHOT")
// paperweight.foliaDevBundle("1.21-R0.1-SNAPSHOT")
// paperweight.devBundle("com.example.paperfork", "1.21-R0.1-SNAPSHOT")
}
Expand Down Expand Up @@ -63,5 +64,5 @@ bukkitPluginYaml {
main = "net.slqmy.template_paper_plugin.TemplatePaperPlugin"
load = BukkitPluginYaml.PluginLoadOrder.STARTUP
authors.add("Slqmy")
apiVersion = "1.21"
apiVersion = paperApiVersion
}

0 comments on commit 1daeef6

Please sign in to comment.