mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
fixed java 16 thanks to @davchoo
This commit is contained in:
parent
2dbd39c5a4
commit
d1fbb909a5
3 changed files with 15 additions and 5 deletions
|
@ -9,6 +9,18 @@ dependencies {
|
||||||
implementation("org.geysermc.geyser.adapters", "spigot-all", adaptersVersion)
|
implementation("org.geysermc.geyser.adapters", "spigot-all", adaptersVersion)
|
||||||
|
|
||||||
implementation("me.lucko", "commodore", commodoreVersion)
|
implementation("me.lucko", "commodore", commodoreVersion)
|
||||||
|
|
||||||
|
// Both paper-api and paper-mojangapi only provide Java 17 versions for 1.19
|
||||||
|
compileOnly("io.papermc.paper", "paper-api", paperVersion) {
|
||||||
|
attributes {
|
||||||
|
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
compileOnly("io.papermc.paper", "paper-mojangapi", paperVersion) {
|
||||||
|
attributes {
|
||||||
|
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
platformRelocate("it.unimi.dsi.fastutil")
|
platformRelocate("it.unimi.dsi.fastutil")
|
||||||
|
@ -19,8 +31,6 @@ platformRelocate("me.lucko.commodore")
|
||||||
platformRelocate("io.netty.channel.kqueue")
|
platformRelocate("io.netty.channel.kqueue")
|
||||||
|
|
||||||
// These dependencies are already present on the platform
|
// These dependencies are already present on the platform
|
||||||
provided("io.papermc.paper", "paper-api", paperVersion)
|
|
||||||
provided("io.papermc.paper", "paper-mojangapi", paperVersion)
|
|
||||||
provided("com.viaversion", "viaversion", viaVersion)
|
provided("com.viaversion", "viaversion", viaVersion)
|
||||||
|
|
||||||
application {
|
application {
|
||||||
|
|
|
@ -16,6 +16,6 @@ dependencies {
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "17"
|
jvmTarget = "16"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -26,8 +26,8 @@ tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_16
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
targetCompatibility = JavaVersion.VERSION_16
|
||||||
|
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
Loading…
Reference in a new issue