Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,14 @@ object JavaFormatter {
Some(
s"\n\n\nThe forked google-java-format JVM appears to be running on an incompatible Java version. " +
s"Either set the $JavaHomeEnvVar environment variable or -D$JavaHomeProperty=... to point the formatter to a compatible JDK, " +
s"or lower the sbt setting ThisBuild / javafmtFormatterCompatibleJavaVersion to match the available Java runtime.\n\n\n")
s"or lower the sbt setting ThisBuild / javafmtFormatterCompatibleJavaVersion to match the available Java runtime. " +
s"For configuration details and troubleshooting, see: https://github.com/sbt/sbt-java-formatter\n\n\n")
} else if (olderFormatterOnNewerJdk) {
Some(
s"\n\n\nThe selected google-java-format runtime appears to be too old for the Java version used to launch the formatter JVM. " +
s"Try increasing the sbt setting ThisBuild / javafmtFormatterCompatibleJavaVersion, " +
s"or point the formatter to an older compatible JDK via the $JavaHomeEnvVar environment variable or -D$JavaHomeProperty=....\n\n\n")
s"or point the formatter to an older compatible JDK via the $JavaHomeEnvVar environment variable or -D$JavaHomeProperty=.... " +
s"For configuration details and troubleshooting, see: https://github.com/sbt/sbt-java-formatter\n\n\n")
} else {
None
}
Expand Down