diff --git a/build.gradle b/build.gradle index f3548b8..f343b52 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ repositories { } dependencies { - compileOnly("io.papermc.paper:paper-api:1.21.5-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:${minecraft_version}${paper_version_suffix}") implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' @@ -44,7 +44,7 @@ tasks { // Configure the Minecraft version for our task. // This is the only required configuration besides applying the plugin. // Your plugin's jar (or shadowJar if present) will be used automatically. - minecraftVersion("1.21.5") + minecraftVersion("${minecraft_version}") } } diff --git a/gradle.properties b/gradle.properties index e69de29..b000910 100644 --- a/gradle.properties +++ b/gradle.properties @@ -0,0 +1,2 @@ +minecraft_version=1.21.8 +paper_version_suffix=-R0.1-SNAPSHOT \ No newline at end of file