I need to do source code setup of Crate version 3.0.5 in CentOS Linux 7 (Core). I have followed link: crate/basics.rst at 3.0.5 · crate/crate · GitHub
crate version: 3.0.5
java version: 1.8.0_312
python version: Python 3.6.8
gradle version: 4.7
JAVA_HOME = /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/
I have created “crate” user for the setup. On executing ./gradlew compileJava I am getting below error:
Watching the file system is not supported.
> Task :buildSrc:compileJava FAILED
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/TestLogger.java:60: error: cannot find symbol
for (String output : testOutputs.getOrDefault(test, List.of())) {
^
symbol: method of()
location: interface java.util.List
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/Jdk.java:37: error: cannot find symbol
private static final List<String> ALLOWED_VENDORS = List.of("adoptopenjdk", "adoptium");
^
symbol: method of(java.lang.String,java.lang.String)
location: interface java.util.List
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/Jdk.java:38: error: cannot find symbol
private static final List<String> ALLOWED_OS = List.of("linux", "windows", "mac");
^
symbol: method of(java.lang.String,java.lang.String,java.lang.String)
location: interface java.util.List
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/Jdk.java:39: error: cannot find symbol
private static final List<String> ALLOWED_ARCH = List.of("x64", "aarch64");
^
symbol: method of(java.lang.String,java.lang.String)
location: interface java.util.List
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/Jdk.java:86: error: cannot find symbol
var versionMatcher = VERSION_PATTERN.matcher(version);
^
symbol: class var
location: class io.crate.gradle.plugins.jdk.Jdk
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/Jdk.java:90: error: cannot find symbol
var minor = versionMatcher.group(2);
^
symbol: class var
location: class io.crate.gradle.plugins.jdk.Jdk
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/JdkDownloadPlugin.java:177: error: cannot find symbol
var extension = jdk.os().equals("windows") ? "zip" : "tar.gz";
^
symbol: class var
location: class io.crate.gradle.plugins.jdk.JdkDownloadPlugin
/home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/transform/SymbolicLinkPreservingUntarTransform.java:70: error: cannot find symbol
tar.transferTo(fos);
^
symbol: method transferTo(java.io.FileOutputStream)
location: variable tar of type org.apache.commons.compress.archivers.tar.TarArchiveInputStream
Note: /home/crate/crate/buildSrc/src/main/java/io/crate/gradle/plugins/jdk/JdkDownloadPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:compileJava'.
> Compilation failed; see the compiler error output for details.
* 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
1 actionable task: 1 executed
Please guide me how can I do the setup and run the tests.