@@ -16,7 +16,7 @@ import org.opensearch.gradle.testclusters.StandaloneRestIntegTestTask
16
16
buildscript {
17
17
ext {
18
18
opensearch_group = " org.opensearch"
19
- opensearch_version = System . getProperty(" opensearch.version" , " 1.3 .0-SNAPSHOT" )
19
+ opensearch_version = System . getProperty(" opensearch.version" , " 2.0 .0-SNAPSHOT" )
20
20
// 1.2.0 -> 1.2.0.0, and 1.2.0-SNAPSHOT -> 1.2.0.0-SNAPSHOT
21
21
opensearch_build = opensearch_version. replaceAll(/ (\.\d )([^\d ]*)$/ , ' $1.0$2' )
22
22
common_utils_version = System . getProperty(" common_utils.version" , opensearch_build)
@@ -116,7 +116,7 @@ configurations.all {
116
116
}
117
117
118
118
configurations {
119
- testCompile {
119
+ testImplementation {
120
120
exclude group : ' org.hamcrest' , module : ' hamcrest-core'
121
121
}
122
122
}
@@ -503,6 +503,7 @@ List<String> jacocoExclusions = [
503
503
' org.opensearch.ad.transport.GetAnomalyDetectorTransportAction*' ,
504
504
' org.opensearch.ad.transport.SearchAnomalyResultTransportAction*' ,
505
505
' org.opensearch.ad.transport.SearchAnomalyDetectorInfoTransportAction*' ,
506
+ ' org.opensearch.ad.transport.AnomalyDetectorJobRequest' ,
506
507
507
508
// TODO: unified flow caused coverage drop
508
509
' org.opensearch.ad.transport.DeleteAnomalyResultsTransportAction' ,
@@ -549,40 +550,44 @@ check.dependsOn jacocoTestCoverageVerification
549
550
jacocoTestCoverageVerification. dependsOn jacocoTestReport
550
551
551
552
dependencies {
552
- compile " org.opensearch:opensearch:${ opensearch_version} "
553
+ implementation " org.opensearch:opensearch:${ opensearch_version} "
553
554
compileOnly " org.opensearch.plugin:opensearch-scripting-painless-spi:${ opensearch_version} "
554
- compileOnly " org.opensearch:opensearch-job-scheduler-spi:${ job_scheduler_version} "
555
- compile " org.opensearch:common-utils:${ common_utils_version} "
556
- compile " org.opensearch.client:opensearch-rest-client:${ opensearch_version} "
557
- compile group : ' com.google.guava' , name : ' guava' , version :' 31.0.1-jre'
558
- compile group : ' org.apache.commons' , name : ' commons-math3' , version : ' 3.6.1'
559
- compile group : ' com.google.code.gson' , name : ' gson' , version : ' 2.8.9'
560
- compile group : ' com.yahoo.datasketches' , name : ' sketches-core' , version : ' 0.13.4'
561
- compile group : ' com.yahoo.datasketches' , name : ' memory' , version : ' 0.12.2'
562
- compile group : ' commons-lang' , name : ' commons-lang' , version : ' 2.6'
563
- compile group : ' org.apache.commons' , name : ' commons-pool2' , version : ' 2.10.0'
555
+ compileOnly " org.opensearch:opensearch-job-scheduler-spi:2.0.0.0-alpha1-SNAPSHOT"
556
+ implementation " org.opensearch:common-utils:${ common_utils_version} "
557
+ implementation " org.opensearch.client:opensearch-rest-client:${ opensearch_version} "
558
+ implementation group : ' com.google.guava' , name : ' guava' , version :' 31.0.1-jre'
559
+ implementation group : ' com.google.guava' , name : ' failureaccess' , version :' 1.0.1'
560
+ implementation group : ' org.javassist' , name : ' javassist' , version :' 3.28.0-GA'
561
+ implementation group : ' org.apache.commons' , name : ' commons-math3' , version : ' 3.6.1'
562
+ implementation group : ' com.google.code.gson' , name : ' gson' , version : ' 2.8.9'
563
+ implementation group : ' com.yahoo.datasketches' , name : ' sketches-core' , version : ' 0.13.4'
564
+ implementation group : ' com.yahoo.datasketches' , name : ' memory' , version : ' 0.12.2'
565
+ implementation group : ' commons-lang' , name : ' commons-lang' , version : ' 2.6'
566
+ implementation group : ' org.apache.commons' , name : ' commons-pool2' , version : ' 2.10.0'
564
567
565
568
// force Jackson version to avoid version conflict issue
566
569
implementation ' software.amazon.randomcutforest:randomcutforest-serialization:2.0.1'
567
570
implementation " com.fasterxml.jackson.core:jackson-core:2.12.6"
568
571
implementation " com.fasterxml.jackson.core:jackson-databind:2.12.6"
569
572
implementation " com.fasterxml.jackson.core:jackson-annotations:2.12.6"
570
- compile files(' lib/randomcutforest-parkservices-2.0.1.jar' )
571
- compile files(' lib/randomcutforest-core-2.0.1.jar' )
573
+ implementation files(' lib/randomcutforest-parkservices-2.0.1.jar' )
574
+ implementation files(' lib/randomcutforest-core-2.0.1.jar' )
572
575
573
576
// used for serializing/deserializing rcf models.
574
- compile group : ' io.protostuff' , name : ' protostuff-core' , version : ' 1.8.0'
575
- compile group : ' io.protostuff' , name : ' protostuff-runtime' , version : ' 1.8.0'
576
- compile group : ' org.apache.commons' , name : ' commons-lang3' , version : ' 3.12.0'
577
-
578
- compile " org.jacoco:org.jacoco.agent:0.8.5"
579
- compile (" org.jacoco:org.jacoco.ant:0.8.5" ) {
577
+ implementation group : ' io.protostuff' , name : ' protostuff-core' , version : ' 1.8.0'
578
+ implementation group : ' io.protostuff' , name : ' protostuff-runtime' , version : ' 1.8.0'
579
+ implementation group : ' io.protostuff' , name : ' protostuff-api' , version : ' 1.8.0'
580
+ implementation group : ' io.protostuff' , name : ' protostuff-collectionschema' , version : ' 1.8.0'
581
+ implementation group : ' org.apache.commons' , name : ' commons-lang3' , version : ' 3.12.0'
582
+
583
+ implementation " org.jacoco:org.jacoco.agent:0.8.5"
584
+ implementation (" org.jacoco:org.jacoco.ant:0.8.5" ) {
580
585
exclude group : ' org.ow2.asm' , module : ' asm-commons'
581
586
exclude group : ' org.ow2.asm' , module : ' asm'
582
587
exclude group : ' org.ow2.asm' , module : ' asm-tree'
583
588
}
584
589
585
- testCompile group : ' pl.pragmatists' , name : ' JUnitParams' , version : ' 1.1.1'
590
+ testImplementation group : ' pl.pragmatists' , name : ' JUnitParams' , version : ' 1.1.1'
586
591
testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 2.25.0'
587
592
testImplementation group : ' org.powermock' , name : ' powermock-api-mockito2' , version : ' 2.0.2'
588
593
testImplementation group : ' org.powermock' , name : ' powermock-module-junit4' , version : ' 2.0.2'
@@ -591,11 +596,11 @@ dependencies {
591
596
testImplementation group : ' org.powermock' , name : ' powermock-api-support' , version : ' 2.0.2'
592
597
testImplementation group : ' org.powermock' , name : ' powermock-reflect' , version : ' 2.0.7'
593
598
testImplementation group : ' org.objenesis' , name : ' objenesis' , version : ' 3.0.1'
594
- testCompile group : ' net.bytebuddy' , name : ' byte-buddy' , version : ' 1.9.15'
595
- testCompile group : ' net.bytebuddy' , name : ' byte-buddy-agent' , version : ' 1.9.15'
599
+ testImplementation group : ' net.bytebuddy' , name : ' byte-buddy' , version : ' 1.9.15'
600
+ testImplementation group : ' net.bytebuddy' , name : ' byte-buddy-agent' , version : ' 1.9.15'
596
601
testCompileOnly ' org.apiguardian:apiguardian-api:1.1.0'
597
602
testImplementation ' org.junit.jupiter:junit-jupiter-api:5.7.2'
598
- testImplementation ' org.junit.jupiter:junit-jupiter-params:5.7.2'
603
+ testImplementation ' org.junit.jupiter:junit-jupiter-params:5.7.2'
599
604
testImplementation ' org.junit.jupiter:junit-jupiter-engine:5.7.2'
600
605
testRuntimeOnly ' org.junit.vintage:junit-vintage-engine:5.7.2'
601
606
testCompileOnly ' junit:junit:4.13.2'
0 commit comments