Skip to content

Commit

Permalink
Fixed deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
Atick authored and atick-faisal committed Dec 29, 2024
1 parent 9655b83 commit e10015b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* limitations under the License.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

plugins {
`kotlin-dsl`
Expand All @@ -29,9 +30,9 @@ java {
targetCompatibility = JavaVersion.values()[javaVersion - 1]
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "$javaVersion"
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.valueOf("JVM_$javaVersion"))
}
}

Expand Down

0 comments on commit e10015b

Please sign in to comment.