Skip to content

Commit

Permalink
Support for Scala-Native 0.5.0 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Apr 15, 2024
1 parent 10701ea commit f7970b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .mill-version
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
0.11.7

0.11.7-29-f2e220
14 changes: 9 additions & 5 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.github.lolgab.mill.mima._

val scala212 = "2.12.17"
val scala213 = "2.13.10"
val scala3 = "3.1.3"
val scala3 = "3.3.1"

val osLib = "0.9.3"
val acyclic = "0.3.11"
Expand All @@ -30,6 +30,10 @@ trait MainArgsPublishModule

override def mimaPreviousVersions = Seq("0.6.0")

def mimaReportBinaryIssues() =
if (this.isInstanceOf[ScalaNativeModule] || this.isInstanceOf[ScalaJSModule]) T.command()
else super.mimaReportBinaryIssues()

override def versionScheme: T[Option[VersionScheme]] = T(Some(VersionScheme.EarlySemVer))

def publishProperties = super.publishProperties() ++ Map(
Expand Down Expand Up @@ -63,14 +67,14 @@ trait MainArgsPublishModule
)

def ivyDeps = Agg(
ivy"org.scala-lang.modules::scala-collection-compat::2.8.1"
ivy"org.scala-lang.modules::scala-collection-compat::2.12.0"
)
}

def scalaMajor(scalaVersion: String) = if (isScala3(scalaVersion)) "3" else "2"

trait CommonTestModule extends ScalaModule with TestModule.Utest {
def ivyDeps = Agg(ivy"com.lihaoyi::utest::0.8.1")
def ivyDeps = Agg(ivy"com.lihaoyi::utest::0.8.3")
}

object mainargs extends Module {
Expand All @@ -83,13 +87,13 @@ object mainargs extends Module {

object js extends Cross[JSMainArgsModule](scalaVersions)
trait JSMainArgsModule extends MainArgsPublishModule with ScalaJSModule {
def scalaJSVersion = "1.10.1"
def scalaJSVersion = "1.12.0"
object test extends ScalaJSTests with CommonTestModule
}

object native extends Cross[NativeMainArgsModule](scalaVersions)
trait NativeMainArgsModule extends MainArgsPublishModule with ScalaNativeModule {
def scalaNativeVersion = "0.4.7"
def scalaNativeVersion = "0.5.0"
object test extends ScalaNativeTests with CommonTestModule
}
}
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ command-line friendly tool.

# Changelog

## master

- Support for Scala-Native 0.5.0

## 0.6.3

- Fix usage of `ParserForClass` for `case class`es with more than 22 parameters in Scala 2.x
Expand Down

0 comments on commit f7970b0

Please sign in to comment.