-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we cross published 2.12.13 and for older versions we used 2.12.12 due to changes to compiler API. This however did not work for the sbt plugin, which had the coursier resolve a wrong version for a transitive dependency. Now, we are using a more base reporting API, which should work for both 2.12.12- and 2.12.13+ versions. I previously haven't noticed that this is possible. The couriser issue is coursier/coursier#1950
- Loading branch information
Showing
7 changed files
with
21 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ jobs: | |
java: [[email protected], [email protected]] | ||
command: | ||
- "'++2.11.12 test'" | ||
- "'++2.12.12 test'" | ||
- "'++2.12.13 test' scripted" | ||
- "'++2.13.4 test'" | ||
- "'++3.0.0-M3 test'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
mdoc/src/main/scala-2.12.12/mdoc/internal/markdown/VersionSpecificFilteringReporter.scala
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
mdoc/src/main/scala-2.12.13/mdoc/internal/markdown/VersionSpecificFilteringReporter.scala
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
mdoc/src/main/scala-2.12/mdoc/internal/markdown/VersionSpecificFilteringReporter.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package mdoc.internal.markdown | ||
|
||
import scala.tools.nsc.Settings | ||
import scala.tools.nsc.reporters.Reporter | ||
import scala.reflect.internal.util.Position | ||
import scala.reflect.internal.util.NoPosition | ||
|
||
trait VersionSpecificFilteringReporter extends Reporter { self: FilterStoreReporter => | ||
override def info0(pos: Position, msg: String, severity: Severity, force: Boolean): Unit = { | ||
if (!infos.exists(info => pos != NoPosition && info.pos.point == pos.point)) | ||
add(pos, msg, severity) | ||
} | ||
|
||
override def hasErrors: Boolean = infos.exists(_.severity == ERROR) | ||
|
||
override def hasWarnings: Boolean = infos.exists(_.severity == WARNING) | ||
|
||
} |