9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-04 15:41:40 +00:00

Ability to use Virtual Thread for async scheduler (#30)

This commit is contained in:
Nostal Yuu
2024-03-12 13:43:11 +08:00
committed by GitHub
parent eb9793ab48
commit f5ac6fca23
4 changed files with 113 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("com.github.johnrengelman.shadow") version "8.1.1" apply false // paperweight required this original shadow
id("io.github.goooler.shadow") version "8.1.7" apply false
id("io.papermc.paperweight.patcher") version "1.5.12-SNAPSHOT"
}
@@ -26,13 +27,13 @@ subprojects {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
options.release.set(21)
}
tasks.withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()