From 36d3dd9a6dc7708d5a7a1de7670f773b87d6b3ae Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sun, 13 Dec 2020 16:59:03 -0300 Subject: [PATCH] Update ViaVersion, require Java 11 --- README.md | 2 ++ build.gradle.kts | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ab9c462..a862aa0 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Idea: server.example.com._p25565._v1_12_2._otrue._uBACKUSERNAME.viaaas.example.c Download: https://github.com/ViaVersion/VIAaaS/actions (needs to be logged into GitHub) +Requires Java 11 + Usage for offline mode: - Run the shadow jar or ./gradlew clean run - Connect to mc.example.com._v1_8.viaaas.localhost diff --git a/build.gradle.kts b/build.gradle.kts index 4920ccb..a1229c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,8 +11,8 @@ application { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } val gitVersion: groovy.lang.Closure by extra @@ -33,7 +33,7 @@ repositories { } dependencies { - implementation("us.myles:viaversion:3.2.0") { isTransitive = false } + implementation("us.myles:viaversion:3.2.1") { isTransitive = false } implementation("nl.matsv:viabackwards-all:3.2.0") { isTransitive = false } implementation("de.gerrygames:viarewind-all:1.5.2") { isTransitive = false } implementation("io.netty:netty-all:4.1.53.Final") @@ -82,3 +82,7 @@ tasks.named("processResources") { )) } } + +val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks + +compileKotlin.kotlinOptions.jvmTarget = "11" \ No newline at end of file