Reputation: 358
Is there a guide or example somewhere for using mill build tool with scala-3 and scala.js? I saw that the same question had been asked, but implicitly for sbt, and the answer was essentially "it just works". In mill I change the scalaVersion from 2.13.7 to 3.1.2 and learn that "resolution fails for org.scala-js:scalajs-library_sjs1_3:2.6.0". It isn't clear to me the resolution that implies.
Upvotes: 1
Views: 285
Reputation: 37431
The mill documentation includes a page on scala.js. As far as I know, it shouldn't matter that it's scala3
Example from the docs:
import mill._, scalalib._, scalajslib._
object foo extends ScalaJSModule {
def scalaVersion = "2.13.8"
def scalaJSVersion = "1.13.0"
def ivyDeps = Agg(ivy"com.lihaoyi::scalatags::0.12.0")
object test extends ScalaJSTests {
def ivyDeps = Agg(ivy"com.lihaoyi::utest::0.7.11")
def testFramework = "utest.runner.Framework"
}
}
Upvotes: 0