mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Use JetBrains runtime for run tasks
allows for better runtime class redefinition closes #10459
This commit is contained in:
parent
c4adb2b7c7
commit
a7e0798f78
1 changed files with 5 additions and 1 deletions
|
@ -107,7 +107,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ workingDir = rootProject.layout.projectDirectory
|
||||
+ .dir(providers.gradleProperty("paper.runWorkDir").getOrElse("run"))
|
||||
+ .asFile
|
||||
+ javaLauncher.set(project.javaToolchains.launcherFor(project.java.toolchain))
|
||||
+ javaLauncher.set(project.javaToolchains.launcherFor {
|
||||
+ languageVersion.set(JavaLanguageVersion.of(21))
|
||||
+ vendor.set(JvmVendorSpec.JETBRAINS)
|
||||
+ })
|
||||
+ jvmArgs("-XX:+AllowEnhancedClassRedefinition", "-XX:+AllowRedefinitionToAddDeleteMethods")
|
||||
+
|
||||
+ if (rootProject.childProjects["test-plugin"] != null) {
|
||||
+ val testPluginJar = rootProject.project(":test-plugin").tasks.jar.flatMap { it.archiveFile }
|
||||
|
|
Loading…
Reference in a new issue