Skip to content

Commit

Permalink
disable detekt so that snakeyaml <= 1.31 is not used (#265)
Browse files Browse the repository at this point in the history
Signed-off-by: Subhobrata Dey <[email protected]>
  • Loading branch information
sbcd90 authored Oct 3, 2022
1 parent 0bd06b9 commit dc4575d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
ext {
opensearch_group = "org.opensearch"
opensearch_version = System.getProperty("opensearch.version", "1.4.0-SNAPSHOT")
kotlin_version = System.getProperty("kotlin.version", "1.4.32")
kotlin_version = System.getProperty("kotlin.version", "1.6.0")
}

repositories {
Expand All @@ -21,7 +21,7 @@ buildscript {
classpath "${opensearch_group}.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.17.1"
// classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.17.1"
}
}

Expand Down Expand Up @@ -57,7 +57,7 @@ apply plugin: 'jacoco'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
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'

Expand All @@ -69,7 +69,7 @@ dependencies {
compileOnly "org.opensearch.client:opensearch-rest-high-level-client:${opensearch_version}"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-common:${kotlin_version}"
compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3" // ${kotlin_version} does not work for coroutines
compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0" // ${kotlin_version} does not work for coroutines
testCompile "org.opensearch.test:framework:${opensearch_version}"
testCompile "org.jetbrains.kotlin:kotlin-test:${kotlin_version}"
testCompile "org.mockito:mockito-core:3.10.0"
Expand All @@ -78,7 +78,7 @@ dependencies {
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'

ktlint "com.pinterest:ktlint:0.41.0"
ktlint "com.pinterest:ktlint:0.45.1"
}

test {
Expand All @@ -99,10 +99,10 @@ spotless {
eclipse().configFile rootProject.file('.eclipseformat.xml')
}
}
detekt {
/*detekt {
config = files("detekt.yml")
buildUponDefaultConfig = true
}
}*/

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

0 comments on commit dc4575d

Please sign in to comment.