Skip to content

Commit

Permalink
align jvm target
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Aug 11, 2023
1 parent 8b27907 commit 8bf3418
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions ktlint-rules/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
Expand All @@ -11,16 +17,27 @@ plugins {

kotlin {
sourceSets {
val main by getting {
main {
dependencies {
implementation(libs.ktlint.core)
}
}

val test by getting {
test {
dependencies {
implementation(libs.ktlint.test)
}
}
}
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}

0 comments on commit 8bf3418

Please sign in to comment.