diff --git a/build.gradle.kts b/build.gradle.kts index 5621648..feb3d55 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index 5ceeef1..f760066 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -13,18 +13,17 @@ fun main(args: Array) { } 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(