This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new b2c483c596 chore: add explicit dependency from kaptGenerateStubsKotlin
on versionClass
b2c483c596 is described below
commit b2c483c59628a7c8fe39bdb02aba1db47d2105b0
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Fri Nov 24 12:45:30 2023 +0300
chore: add explicit dependency from kaptGenerateStubsKotlin on versionClass
---
src/core/build.gradle.kts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/core/build.gradle.kts b/src/core/build.gradle.kts
index 5a5e5c7e48..800cefd3c9 100644
--- a/src/core/build.gradle.kts
+++ b/src/core/build.gradle.kts
@@ -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 {