File tree Expand file tree Collapse file tree
build-logic/src/main/kotlin/com/ninecraft/booket/convention Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ package com.ninecraft.booket.convention
22
33import com.android.build.api.dsl.CommonExtension
44import org.gradle.api.Project
5+ import org.gradle.kotlin.dsl.withType
56import org.gradle.kotlin.dsl.dependencies
7+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
8+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
69
710internal fun Project.configureAndroid (extension : CommonExtension ) {
811 extension.apply {
@@ -17,6 +20,10 @@ internal fun Project.configureAndroid(extension: CommonExtension) {
1720 targetCompatibility = ApplicationConstants .javaVersion
1821 }
1922
23+ tasks.withType<KotlinCompile >().configureEach {
24+ compilerOptions.jvmTarget.set(JvmTarget .JVM_17 )
25+ }
26+
2027 dependencies {
2128 detektPlugins(libs.detekt.formatting)
2229 }
You can’t perform that action at this time.
0 commit comments