@@ -14,8 +14,8 @@ import java.util.concurrent.Callable
14
14
15
15
buildscript {
16
16
ext {
17
- opensearch_version = System . getProperty(" opensearch.version" , " 3.0.0-SNAPSHOT" )
18
- buildVersionQualifier = System . getProperty(" build.version_qualifier" , " " )
17
+ opensearch_version = System . getProperty(" opensearch.version" , " 3.0.0-alpha1- SNAPSHOT" )
18
+ buildVersionQualifier = System . getProperty(" build.version_qualifier" , " alpha1 " )
19
19
isSnapshot = " true" == System . getProperty(" build.snapshot" , " true" )
20
20
version_tokens = opensearch_version. tokenize(' -' )
21
21
opensearch_build = version_tokens[0 ] + ' .0'
@@ -250,21 +250,26 @@ def knnJarDirectory = "$buildDir/dependencies/opensearch-knn"
250
250
251
251
dependencies {
252
252
api " org.opensearch:opensearch:${ opensearch_version} "
253
- zipArchive group : ' org.opensearch.plugin' , name :' opensearch-knn' , version : " ${ opensearch_build} "
254
- zipArchive group : ' org.opensearch.plugin' , name :' opensearch-ml-plugin' , version : " ${ opensearch_build} "
253
+ // TODO need to replace by ${opensearch_build} once dependencies adapt new core version
254
+ zipArchive group : ' org.opensearch.plugin' , name :' opensearch-knn' , version : " 3.0.0.0-SNAPSHOT"
255
+ // TODO need to replace by ${opensearch_build} once dependencies adapt new core version
256
+ zipArchive group : ' org.opensearch.plugin' , name :' opensearch-ml-plugin' , version : " 3.0.0.0-SNAPSHOT"
255
257
secureIntegTestPluginArchive group : ' org.opensearch.plugin' , name :' opensearch-security' , version : " ${ opensearch_build} "
256
- compileOnly fileTree(dir : knnJarDirectory, include : " opensearch-knn-${ opensearch_build} .jar" )
258
+ // TODO need to replace by ${opensearch_build} once dependencies adapt new core version
259
+ compileOnly fileTree(dir : knnJarDirectory, include : " opensearch-knn-3.0.0.0-SNAPSHOT.jar" )
257
260
compileOnly group : ' com.google.guava' , name : ' guava' , version :' 32.1.3-jre'
258
261
compileOnly group : ' commons-lang' , name : ' commons-lang' , version : ' 2.6'
259
- api group : ' org.opensearch' , name :' opensearch-ml-client' , version : " ${ opensearch_build} "
262
+ // TODO need to replace by ${opensearch_build} once dependencies adapt new core version
263
+ api group : ' org.opensearch' , name :' opensearch-ml-client' , version : " 3.0.0.0-SNAPSHOT"
260
264
testFixturesImplementation " org.opensearch.test:framework:${ opensearch_version} "
261
265
implementation group : ' org.apache.commons' , name : ' commons-lang3' , version : ' 3.14.0'
262
266
// ml-common excluded reflection for runtime so we need to add it by ourselves.
263
267
// https://github.com/opensearch-project/ml-commons/commit/464bfe34c66d7a729a00dd457f03587ea4e504d9
264
268
// TODO: Remove following three lines of dependencies if ml-common include them in their jar
265
269
runtimeOnly group : ' org.reflections' , name : ' reflections' , version : ' 0.9.12'
266
270
runtimeOnly group : ' org.javassist' , name : ' javassist' , version : ' 3.29.2-GA'
267
- runtimeOnly group : ' org.opensearch' , name : ' common-utils' , version : " ${ opensearch_build} "
271
+ // TODO need to replace by ${opensearch_build} once dependencies adapt new core version
272
+ runtimeOnly group : ' org.opensearch' , name : ' common-utils' , version : " 3.0.0.0-SNAPSHOT"
268
273
runtimeOnly group : ' org.apache.commons' , name : ' commons-text' , version : ' 1.10.0'
269
274
runtimeOnly group : ' com.google.code.gson' , name : ' gson' , version : ' 2.10.1'
270
275
runtimeOnly group : ' org.json' , name : ' json' , version : ' 20231013'
@@ -273,7 +278,8 @@ dependencies {
273
278
testFixturesImplementation " org.opensearch:common-utils:${ version} "
274
279
testFixturesImplementation group : ' org.apache.commons' , name : ' commons-lang3' , version : ' 3.14.0'
275
280
testFixturesCompileOnly group : ' com.google.guava' , name : ' guava' , version :' 32.1.3-jre'
276
- testFixturesCompileOnly fileTree(dir : knnJarDirectory, include : " opensearch-knn-${ opensearch_build} .jar" )
281
+ // TODO need to replace by ${opensearch_build} once dependencies adapt new core version
282
+ testFixturesCompileOnly fileTree(dir : knnJarDirectory, include : " opensearch-knn-3.0.0.0-SNAPSHOT.jar" )
277
283
}
278
284
279
285
// In order to add the jar to the classpath, we need to unzip the
0 commit comments