Skip to content

Commit

Permalink
Support Scala 3 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Nov 20, 2021
1 parent 0fe684c commit dec3e5c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ object ScalaJsMap extends AutoPlugin {
} else {
path
}
raw"""-P:scalajs:mapSourceURI:${repositoryBuilder.getWorkTree.toURI}->https://github.com/$slug/raw/${head.name}/"""
val key = CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) =>
"-scalajs-mapSourceURI"
case _ =>
"-P:scalajs:mapSourceURI"
}
raw"""$key:${repositoryBuilder.getWorkTree.toURI}->https://github.com/$slug/raw/${head.name}/"""
}
}
},
Expand Down

0 comments on commit dec3e5c

Please sign in to comment.