diff --git a/ktlint-rules/build.gradle.kts b/ktlint-rules/build.gradle.kts index 9e13c58..a7f59dc 100644 --- a/ktlint-rules/build.gradle.kts +++ b/ktlint-rules/build.gradle.kts @@ -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 @@ -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 { + kotlinOptions { + jvmTarget = "1.8" + } +} + +tasks.withType { + sourceCompatibility = JavaVersion.VERSION_1_8.toString() + targetCompatibility = JavaVersion.VERSION_1_8.toString() +}