Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JDK 15 的源版本和目标版本的值是多少
构建工具 -> sbt/maven
IE javacOptions ++= Seq("-source", "1.10", "-target", "1.10")
javacOptions ++= Seq("-source", "1.10", "-target", "1.10")
注意:直到 11 工作正常
你在 3 个方面已经过时了。这些天 Java 发展迅速 :)
1.x
15
1.15
-source
-target
release
-
换句话说,您正在寻找Seq("--release", "15").
Seq("--release", "15")