@@ -11,7 +11,7 @@ set -o errexit # Exit the script with error if any of the commands fail
1111# Supported values: "server", "replica_set", "sharded_cluster"
1212# COMPRESSOR Set to enable compression. Values are "snappy" and "zlib" (default is no compression)
1313# JDK Set the version of java to be used. Java versions can be set from the java toolchain /opt/java
14- # "jdk5", "jdk6", "jdk7", "jdk8"
14+ # "jdk5", "jdk6", "jdk7", "jdk8", "jdk9"
1515
1616AUTH=${AUTH:- noauth}
1717SSL=${SSL:- nossl}
2828 export ASYNC_TYPE=" -Dorg.mongodb.async.type=nio2"
2929fi
3030
31+ # We always compile with the latest version of java
32+ export JAVA_HOME=" /opt/java/jdk9"
33+
34+
3135# ###########################################
3236# Functions #
3337# ###########################################
@@ -40,7 +44,7 @@ provision_ssl () {
4044 openssl pkcs12 -CAfile ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem -export -in ${DRIVERS_TOOLS} /.evergreen/x509gen/client.pem -out client.pkc -password pass:bithere
4145 fi
4246 if [ ! -f mongo-truststore ]; then
43- echo " y " | ${JAVA_HOME} /bin/keytool -importcert -trustcacerts -file ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem -keystore mongo-truststore -storepass hithere
47+ ${JAVA_HOME} /bin/keytool -importcert -trustcacerts -file ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem -keystore mongo-truststore -storepass hithere -storetype JKS -noprompt
4448 fi
4549
4650 # We add extra gradle arguments for SSL
@@ -82,9 +86,6 @@ if [ "$SSL" != "nossl" ]; then
8286fi
8387echo " Running $AUTH tests over $SSL for $TOPOLOGY and connecting to $MONGODB_URI "
8488
85- # We always compile with the latest version of java
86- export JAVA_HOME=" /opt/java/jdk8"
87-
8889echo " Running tests with ${JDK} "
8990./gradlew -version
9091./gradlew -PjdkHome=/opt/java/${JDK} -Dorg.mongodb.test.uri=${MONGODB_URI} ${GRADLE_EXTRA_VARS} ${ASYNC_TYPE} --stacktrace --info test
0 commit comments