update jvm target

This commit is contained in:
oSumAtrIX
2026-01-30 16:24:58 +01:00
parent b6b6f159cc
commit 8a8e4ac2b4
2 changed files with 13 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ dependencies {
kotlin { kotlin {
compilerOptions { compilerOptions {
jvmTarget.set(JvmTarget.JVM_11) jvmToolchain(17)
freeCompilerArgs.addAll( freeCompilerArgs.addAll(
"-Xexplicit-backing-fields", "-Xexplicit-backing-fields",
@@ -51,7 +51,7 @@ kotlin {
} }
java { java {
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }
tasks { tasks {

View File

@@ -13,8 +13,7 @@ fun main(args: Array<String>) {
} }
private object CLIVersionProvider : IVersionProvider { private object CLIVersionProvider : IVersionProvider {
override fun getVersion() = override fun getVersion() = arrayOf(
arrayOf(
MainCommand::class.java.getResourceAsStream( MainCommand::class.java.getResourceAsStream(
"/app/revanced/cli/version.properties", "/app/revanced/cli/version.properties",
)?.use { stream -> )?.use { stream ->