Document JAVA_8_HOME in error message

When no Java 8 installation is found, mention in the error message that
you can also use the JAVA_8_HOME environment variable to help the build
find it.
This commit is contained in:
Arnout Engelen 2023-05-24 11:05:51 +02:00 committed by Matthew de Detrich
parent 480f516398
commit eaea9b116f
No known key found for this signature in database
GPG key ID: 196CBC8FEAA4CC64

View file

@ -88,7 +88,7 @@ object JdkOptions extends AutoPlugin {
jdk11options(java8home)
case None =>
throw new MessageOnlyException(
"A JDK 8 installation was not found, but is required to build Apache Pekko. To manually specify a JDK 8 installation, use the \"set every jdk8home := \\\"/path/to/jdk\\\" sbt command. If you have no JDK 8 installation, target your system JDK with the \"set every targetSystemJdk := true\" sbt command, but beware resulting artifacts will not work on JDK 8")
"A JDK 8 installation was not found, but is required to build Apache Pekko. To manually specify a JDK 8 installation, set the JAVA_8_HOME environment variable to its path or use the \"set every jdk8home := \\\"/path/to/jdk\\\" sbt command. If you have no JDK 8 installation, target your system JDK with the \"set every targetSystemJdk := true\" sbt command, but beware resulting artifacts will not work on JDK 8")
}
val targetJdkSettings = Seq(targetSystemJdk := false, jdk8home := sys.env.get("JAVA_8_HOME").getOrElse(""))