From 165fbf00c91f4b77cf6f99a14ce0aaea2e5da3e5 Mon Sep 17 00:00:00 2001 From: kt-eliatra Date: Mon, 8 Aug 2022 17:44:04 +0200 Subject: [PATCH] disable forbiddenApisNewTest --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index b419520861..3d509d4519 100644 --- a/build.gradle +++ b/build.gradle @@ -84,6 +84,12 @@ forbiddenPatterns.enabled = false testingConventions.enabled = false // Conflicts between runtime kafka-clients:3.0.1 & testRuntime kafka-clients:3.0.1:test jarHell.enabled = false +tasks.whenTaskAdded {task -> + if(task.name.contains("forbiddenApisNewTest")) { + task.enabled = false + } +} + test { include '**/*.class'