diff --git a/build.gradle.kts b/build.gradle.kts index 3e677369..f8c42d06 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,7 +27,7 @@ description = projectDescription object Versions { const val androidTools = "7.3.1" const val junit = "5.9.3" - const val ktlint = "1.0.0" + const val ktlint = "1.0.1" const val mockitoKotlin = "4.1.0" } diff --git a/src/main/kotlin/org/jmailen/gradle/kotlinter/KotlinterPlugin.kt b/src/main/kotlin/org/jmailen/gradle/kotlinter/KotlinterPlugin.kt index f0900513..c1828837 100644 --- a/src/main/kotlin/org/jmailen/gradle/kotlinter/KotlinterPlugin.kt +++ b/src/main/kotlin/org/jmailen/gradle/kotlinter/KotlinterPlugin.kt @@ -99,4 +99,4 @@ class KotlinterPlugin : Plugin { internal val String.id: String get() = split(" ").first() -internal fun Project.reportFile(name: String): File = file("$buildDir/reports/ktlint/$name") +internal fun Project.reportFile(name: String): File = file("${layout.buildDirectory}/reports/ktlint/$name")