Skip to content

Commit 2d5ab2c

Browse files
committed
fix snakeyaml vulnerability issue by disabling detekt
Signed-off-by: Subhobrata Dey <[email protected]>
1 parent b82ef4a commit 2d5ab2c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
classpath "${opensearch_group}.gradle:build-tools:${opensearch_version}"
2424
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
2525
classpath "org.jetbrains.kotlin:kotlin-allopen:${kotlin_version}"
26-
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0-RC1"
26+
// classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0-RC1"
2727
}
2828
}
2929

@@ -59,14 +59,15 @@ apply plugin: 'jacoco'
5959
apply plugin: 'signing'
6060
apply plugin: 'maven-publish'
6161
apply plugin: 'com.github.johnrengelman.shadow'
62-
apply plugin: 'io.gitlab.arturbosch.detekt'
62+
// apply plugin: 'io.gitlab.arturbosch.detekt'
6363
apply plugin: 'org.jetbrains.kotlin.jvm'
6464
apply plugin: 'org.jetbrains.kotlin.plugin.allopen'
6565
apply plugin: 'opensearch.repositories'
6666
apply from: 'build-tools/opensearchplugin-coverage.gradle'
6767

6868
configurations {
6969
ktlint
70+
all*.exclude group: 'org.yaml', module: 'snakeyaml'
7071
}
7172

7273
dependencies {
@@ -103,10 +104,10 @@ spotless {
103104
eclipse().configFile rootProject.file('.eclipseformat.xml')
104105
}
105106
}
106-
detekt {
107+
/*detekt {
107108
config = files("detekt.yml")
108109
buildUponDefaultConfig = true
109-
}
110+
}*/
110111

111112
task ktlint(type: JavaExec, group: "verification") {
112113
description = "Check Kotlin code style."

0 commit comments

Comments
 (0)