Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Add run-paper Gradle plugin
Browse files Browse the repository at this point in the history
This makes it easier to test the plugin on different server versions.
  • Loading branch information
0dinD committed Mar 9, 2022
1 parent 72c8fab commit ecb104a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ todolist.txt

# WorldEdit Builds
Support-WorldEdit-7/build/tmp*
Support-WorldEdit-6/build/tmp*
Support-WorldEdit-6/build/tmp*

# run-paper
/run/
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ buildscript {
}
}

plugins {
id "xyz.jpenilla.run-paper" version "1.0.6"
}

allprojects {
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'
Expand Down Expand Up @@ -85,4 +89,11 @@ shadowJar {
relocate 'net.wesjd.anvilgui', 'com.gmail.val59000mc.anvilgui'
}

build.dependsOn(shadowJar)
build.dependsOn(shadowJar)

runServer {
minecraftVersion "1.18.2"
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}
}

0 comments on commit ecb104a

Please sign in to comment.