From 8e23045b3c43e5253643f4ecd418c3ae7855137c Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:29:48 -0700 Subject: [PATCH] Disable detekt because of the CVE (#497) (#500) Signed-off-by: bowenlan-amzn Signed-off-by: bowenlan-amzn (cherry picked from commit 50ac1e944129adc5acb21e75bab75ff3ade203fc) Co-authored-by: bowenlan-amzn Signed-off-by: Angie Zhang --- build.gradle | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 22678d38d..b607cc9fb 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,8 @@ buildscript { classpath "org.opensearch.gradle:build-tools:${opensearch_version}" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}" classpath "org.jetbrains.kotlin:kotlin-allopen:${kotlin_version}" - classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.21.0" + // TODO because snakeyaml CVE issue is on the latest version, have to disable detekt for now +// classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.21.0" classpath "org.jacoco:org.jacoco.agent:0.8.7" } } @@ -75,7 +76,7 @@ apply plugin: 'idea' apply plugin: 'opensearch.opensearchplugin' apply plugin: 'opensearch.testclusters' apply plugin: 'opensearch.rest-test' -apply plugin: 'io.gitlab.arturbosch.detekt' +//apply plugin: 'io.gitlab.arturbosch.detekt' apply plugin: 'org.jetbrains.kotlin.jvm' apply plugin: 'org.jetbrains.kotlin.plugin.allopen' apply plugin: 'opensearch.pluginzip' @@ -147,10 +148,10 @@ task ktlintFormat(type: JavaExec, group: "formatting") { args "-F", "src/**/*.kt", "spi/src/main/**/*.kt" } -detekt { - config = files("detekt.yml") - buildUponDefaultConfig = true -} +//detekt { +// config = files("detekt.yml") +// buildUponDefaultConfig = true +//} configurations.testImplementation { exclude module: "securemock"