Skip to content

Commit

Permalink
build: set up run-task for 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
yusshu committed May 20, 2024
1 parent c41369d commit f380d30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,7 @@ fabric.properties
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser

# run-task
/bukkit/run/
9 changes: 8 additions & 1 deletion bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("creative.dist-conventions")
id("xyz.jpenilla.run-paper") version "2.3.0"
}

repositories {
Expand All @@ -24,11 +25,17 @@ dependencies {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
}

tasks {
compileJava {
options.release = 17
}
runServer {
minecraftVersion("1.20.6")
}
shadowJar {
dependencies {
// all these dependencies are provided by the server
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit f380d30

Please sign in to comment.