tencentyun / elasticsearch-repository-cos

The COS repository plugin adds support for using Tencent Cloud COS as a repository for Snapshot/Restore
Apache License 2.0
16 stars 15 forks source link

如果使用7.2.0的es,是否可以master分支的代码构建? #9

Closed StruggleYang closed 4 years ago

StruggleYang commented 4 years ago

现在内部使用7.2.0的elasticsearch,可以直接使用master的代码或者7.5分支的代码编译插件吗? README.md 里提到:

7.x 之后的版本,使用gradle编译
gradle build

所以不解7.x之后的版本支持和兼容情况是如何的?支持的es版本列表是分支列表中的版本吗?

尝试改动过 gradle.properties 里的esVersion=7.2.0,但执行构建报错如下:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/struy/project/github/elasticsearch-repository-cos/build.gradle' line: 2

* What went wrong:
Could not compile build file '/Users/struy/project/github/elasticsearch-repository-cos/build.gradle'.
> startup failed:
  build file '/Users/struy/project/github/elasticsearch-repository-cos/build.gradle': 2: unable to resolve class org.elasticsearch.gradle.testclusters.TestClustersRegistry
   @ line 2, column 1.
     import org.elasticsearch.gradle.testclusters.TestClustersRegistry
     ^

  1 error

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s