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

View File

@@ -13,18 +13,17 @@ fun main(args: Array<String>) {
}
private object CLIVersionProvider : IVersionProvider {
override fun getVersion() =
arrayOf(
MainCommand::class.java.getResourceAsStream(
"/app/revanced/cli/version.properties",
)?.use { stream ->
Properties().apply {
load(stream)
}.let {
"ReVanced CLI v${it.getProperty("version")}"
}
} ?: "ReVanced CLI",
)
override fun getVersion() = arrayOf(
MainCommand::class.java.getResourceAsStream(
"/app/revanced/cli/version.properties",
)?.use { stream ->
Properties().apply {
load(stream)
}.let {
"ReVanced CLI v${it.getProperty("version")}"
}
} ?: "ReVanced CLI",
)
}
@Command(