Skip to content

Commit 6f8d25c

Browse files
committed
Rewrite SecureRestClientBuilder
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
1 parent 3b9cf7f commit 6f8d25c

File tree

2 files changed

+346
-9
lines changed

2 files changed

+346
-9
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ dependencies {
197197
implementation "org.apache.httpcomponents:httpcore:4.4.15"
198198

199199
testImplementation "org.opensearch.test:framework:${opensearch_version}"
200+
testImplementation "org.opensearch.client:opensearch-rest-high-level-client:${opensearch_version}"
200201
testImplementation "org.jetbrains.kotlin:kotlin-test:${kotlin_version}"
201202
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
202203
testImplementation "org.mockito:mockito-core:4.7.0"
@@ -271,6 +272,7 @@ def securityPluginFile = new Callable<RegularFile>() {
271272
}
272273
}
273274
}
275+
// This flag indicates the existence of security plugin
274276
def securityEnabled = System.getProperty("security", "false") == "true"
275277
afterEvaluate {
276278
testClusters.integTest.nodes.each { node ->
@@ -726,11 +728,11 @@ run {
726728

727729
compileKotlin {
728730
kotlinOptions.freeCompilerArgs = ['-Xjsr305=strict']
729-
kotlinOptions.allWarningsAsErrors = true
731+
// kotlinOptions.allWarningsAsErrors = true
730732
}
731733

732734
compileTestKotlin {
733-
kotlinOptions.allWarningsAsErrors = true
735+
// kotlinOptions.allWarningsAsErrors = true
734736
}
735737

736738
apply from: 'build-tools/pkgbuild.gradle'

0 commit comments

Comments
 (0)