mirror of https://github.com/sbt/sbt.git
Fix compiler-project/semantic-errors
Java 21 emits Info about annotation processing, hence we need to filter out Infos so val first is the first non-info problem
This commit is contained in:
parent
6cea06da0b
commit
56f2a9a031
|
|
@ -1,7 +1,7 @@
|
|||
TaskKey[Unit]("checkJavaFailures") := {
|
||||
val reporter = savedReporter.value
|
||||
val ignore = (compile in Compile).failure.value
|
||||
val ps = reporter.problems
|
||||
val ps = reporter.problems.filter(_.severity() != xsbti.Severity.Info)
|
||||
assert(!ps.isEmpty, "Failed to report any problems!")
|
||||
// First error should be on a specific line/file
|
||||
val first = ps(0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue