:buildSrc:writeVersionProperties FAILED
FAILURE: Build failed with an exception.
* Where:
Build file '/.../buildSrc/build.gradle' line: 61
* What went wrong:
Execution failed for task ':buildSrc:writeVersionProperties'.
> No signature of method: static java.nio.file.Files.newOutputStream() is applicable for argument types: (sun.nio.fs.UnixPath) values: [/localbox/Benchmarking/elasticsearch/buildSrc/build-bootstrap/version.properties]
My build environment looks like:
Elasticsearch version: 5.4.0
Java: 9-internal
Gradle: 3.3
OS: RHEL7.3 Linux 3.10.0-514.16.1.el7.x86_64 amd64
Also note that due to gradle not quite working with java 9 yet, we run gradle with java 8 by setting org.gradle.java.home to a jdk8 installation in our ~/gradle.properties, and then hava JAVA_HOME set to the jdk9 installation we are testing. The add opens are needed for gradle still because setting org.gradle.java.home is only respected after gradle first does a minimal initialization on the java found from JAVA_HOME.
I am able to build Elasticsearch with Gradle and OpenJDK9 after exporting JDK_JAVA_OPTIONS='--permit-illegal-access' in the environment. I did encountered issue with Javadoc (Referred here: https://github.com/elastic/elasticsearch/issues/24733) due to which I have temporarily disabled javadoc in build.gradle file.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.