You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2023/05/25 12:29:57 UTC

[jmeter] branch master updated: test: skip @AutoService verifications in test-services project

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 8b379c7afc test: skip @AutoService verifications in test-services project
8b379c7afc is described below

commit 8b379c7afce5a298db887f5afef4cfdab6eb6fda
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Thu May 25 15:29:47 2023 +0300

    test: skip @AutoService verifications in test-services project
    
    test-services has tests that verify ill services that do not implement
    the target interface, so we disable verifications for the test purposes.
---
 src/test-services/build.gradle.kts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/test-services/build.gradle.kts b/src/test-services/build.gradle.kts
index 9efcceed31..24a4319b87 100644
--- a/src/test-services/build.gradle.kts
+++ b/src/test-services/build.gradle.kts
@@ -15,6 +15,9 @@
  * limitations under the License.
  */
 
+import com.github.vlsi.gradle.dsl.configureEach
+import org.jetbrains.kotlin.gradle.tasks.Kapt
+
 plugins {
     id("build-logic.jvm-library")
 }
@@ -23,3 +26,11 @@ dependencies {
     implementation(projects.src.jorphan)
     implementation(projects.src.core)
 }
+
+tasks.configureEach<Kapt> {
+    // ServiceNotImplementingInterface does not implement the service interface for testing purposes,
+    // so we disable AutoService verifications
+    annotationProcessorOptionProviders.add(
+        listOf(CommandLineArgumentProvider { listOf("-Averify=false") })
+    )
+}