Skip to content

Commit

Permalink
chore: add explicit dependency from kaptGenerateStubsKotlin on versio…
Browse files Browse the repository at this point in the history
…nClass
  • Loading branch information
vlsi committed Nov 24, 2023
1 parent d077087 commit b2c483c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ plugins.withId("org.jetbrains.kotlin.jvm") {
dependsOn(versionClass)
}
}
plugins.withId("org.jetbrains.kotlin.kapt") {
// kapt adds kaptGenerateStubsKotlin in afterEvaluate, so we can't use just tasks.named here
// This workaround is needed for Kotlin Gradle Plugin 1.9
afterEvaluate {
tasks.named("kaptGenerateStubsKotlin") {
dependsOn(versionClass)
}
}
}

tasks.withType<Checkstyle>().matching { it.name == "checkstyleMain" }
.configureEach {
Expand Down

0 comments on commit b2c483c

Please sign in to comment.