Skip to content

Commit

Permalink
Support for Scala Native 0.5.0 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Apr 15, 2024
1 parent 2d3295e commit e7995dc
Show file tree
Hide file tree
Showing 3 changed files with 16 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.2

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 @@ -7,13 +7,17 @@ import mill.scalalib.api.ZincWorkerUtil.isScala3

val dottyCommunityBuildVersion = sys.props.get("dottyVersion")

val scalaVersions = Seq("2.11.12", "2.12.17", "2.13.8", "3.1.3") ++ dottyCommunityBuildVersion
val scalaVersions = Seq("2.12.17", "2.13.8", "3.3.1") ++ dottyCommunityBuildVersion

trait FansiModule extends PublishModule with Mima with CrossScalaModule with PlatformScalaModule {
def artifactName = "fansi"

def publishVersion = VcsVersion.vcsState().format()

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

def mimaPreviousVersions = VcsVersion.vcsState().lastTag.toSeq

def pomSettings = PomSettings(
Expand All @@ -27,11 +31,11 @@ trait FansiModule extends PublishModule with Mima with CrossScalaModule with Pla
)
)

def ivyDeps = Agg(ivy"com.lihaoyi::sourcecode::0.3.0")
def ivyDeps = Agg(ivy"com.lihaoyi::sourcecode::0.4.0")
}

trait FansiTestModule 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 fansi extends Module {
Expand All @@ -42,13 +46,13 @@ object fansi extends Module {

object js extends Cross[JsFansiModule](scalaVersions)
trait JsFansiModule extends FansiModule with ScalaJSModule{
def scalaJSVersion = "1.10.1"
def scalaJSVersion = "1.12.0"
object test extends ScalaJSTests with FansiTestModule
}

object native extends Cross[NativeFansiModule](scalaVersions)
trait NativeFansiModule extends FansiModule with ScalaNativeModule{
def scalaNativeVersion = "0.4.5"
def scalaNativeVersion = "0.5.0"
object test extends ScalaNativeTests with FansiTestModule
}
}
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ Scaladoc
Changelog
---------

### master

- Support for Scala-Native 0.5.0
- Dropped support for Scala 2.11.x
- Minimum version of Scala 3 increased to 3.3.1

### 0.4.0

- Dropped support for Scala.js 0.6
Expand Down

0 comments on commit e7995dc

Please sign in to comment.