Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: Allow mdoc work with the future versions of the compiler #669

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ object MdocPlugin extends AutoPlugin {
runMain.in(Compile).toTask(s" mdoc.Main $args")
}
}.evaluated,
dependencyOverrides ++= List(
"org.scala-lang" %% "scala3-library" % scalaVersion.value,
"org.scala-lang" %% "scala3-compiler" % scalaVersion.value,
"org.scala-lang" %% "tasty-core" % scalaVersion.value
),
libraryDependencies ++= {
val isJS = mdocJS.value.isDefined
if (mdocAutoDependency.value) {
Expand Down
2 changes: 1 addition & 1 deletion mdoc-sbt/src/sbt-test/sbt-mdoc/basic/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ThisBuild / scalaVersion := "2.12.16"
ThisBuild / crossScalaVersions := List("2.12.16", "2.13.8", "3.1.3")
ThisBuild / crossScalaVersions := List("2.12.16", "2.13.8", "3.1.3", "3.2.0-RC2")

enablePlugins(MdocPlugin)
mdocJS := Some(jsapp)
Expand Down
2 changes: 2 additions & 0 deletions mdoc-sbt/src/sbt-test/sbt-mdoc/basic/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
> check
> ++3.1.3 mdoc
> check
> ++3.2.0-RC2 mdoc
> check
> set mdocIn := (ThisBuild / baseDirectory).value
-> mdoc