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 a972b8ebd9 chore: skip building the classes when writing dependnecy 
verification
a972b8ebd9 is described below

commit a972b8ebd94b297a0402e6ea749b1b59ec60046b
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Fri Oct 10 23:53:35 2025 +0300

    chore: skip building the classes when writing dependnecy verification
    
    Currently, renovate executes dependencies task which builds all JMeter jars,
    however, we do not need it.
---
 .../jvm/src/main/kotlin/build-logic.java.gradle.kts      |  3 +++
 .../jvm/src/main/kotlin/build-logic.kotlin.gradle.kts    | 16 ++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/build-logic/jvm/src/main/kotlin/build-logic.java.gradle.kts 
b/build-logic/jvm/src/main/kotlin/build-logic.java.gradle.kts
index bb7366a3a1..c91d3170a0 100644
--- a/build-logic/jvm/src/main/kotlin/build-logic.java.gradle.kts
+++ b/build-logic/jvm/src/main/kotlin/build-logic.java.gradle.kts
@@ -45,6 +45,9 @@ tasks.configureEach<JavaCompile> {
     // Use --release=<targetJavaVersion> for javac so the generated bytecode 
does not include methods introduced in
     // next Java releases
     options.release.set(buildParameters.targetJavaVersion)
+    if (gradle.startParameter.writeDependencyVerifications.isNotEmpty()) {
+        enabled = false
+    }
 }
 
 tasks.configureEach<JavaExec> {
diff --git a/build-logic/jvm/src/main/kotlin/build-logic.kotlin.gradle.kts 
b/build-logic/jvm/src/main/kotlin/build-logic.kotlin.gradle.kts
index bc2591ad1f..01adbad0a6 100644
--- a/build-logic/jvm/src/main/kotlin/build-logic.kotlin.gradle.kts
+++ b/build-logic/jvm/src/main/kotlin/build-logic.kotlin.gradle.kts
@@ -17,6 +17,8 @@
 
 import com.github.vlsi.gradle.dsl.configureEach
 import com.github.vlsi.gradle.properties.dsl.props
+import org.jetbrains.kotlin.gradle.tasks.BaseKapt
+import org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs
 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
 
 plugins {
@@ -43,6 +45,9 @@ kotlin {
 }
 
 tasks.configureEach<KotlinCompile> {
+    if (gradle.startParameter.writeDependencyVerifications.isNotEmpty()) {
+        enabled = false
+    }
     kotlinOptions {
         if (!name.startsWith("compileTest")) {
             apiVersion = "kotlin.api".v
@@ -54,6 +59,17 @@ tasks.configureEach<KotlinCompile> {
     }
 }
 
+if (gradle.startParameter.writeDependencyVerifications.isNotEmpty()) {
+    plugins.withId("org.jetbrains.kotlin.kapt") {
+        tasks.configureEach<BaseKapt> {
+            enabled = false
+        }
+        tasks.configureEach<KaptGenerateStubs> {
+            enabled = false
+        }
+    }
+}
+
 if (file("src/main/kotlin").isDirectory) {
     // When main code contains Kotlin, use Dokka instead of Javadoc
     apply(plugin = "build-logic.dokka-javadoc")

Reply via email to