Skip to content

Commit

Permalink
0.9.0 (#128)
Browse files Browse the repository at this point in the history
Support for Scala Native 0.5.0
  • Loading branch information
lihaoyi authored Apr 15, 2024
1 parent a03b76e commit fa319a3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .mill-version
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
0.11.0

0.11.7-29-f2e220
16 changes: 10 additions & 6 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ import com.github.lolgab.mill.mima._
val dottyCommunityBuildVersion = sys.props.get("dottyVersion").toList

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

trait PPrintModule
extends CrossScalaModule with PublishModule with PlatformScalaModule with Mima {
def publishVersion = VcsVersion.vcsState().format()

def mimaPreviousVersions = Seq("0.7.3", "0.8.0") ++ VcsVersion.vcsState().lastTag.toSeq

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

def pomSettings = PomSettings(
description = artifactName(),
organization = "com.lihaoyi",
Expand All @@ -30,8 +34,8 @@ trait PPrintModule
)

def ivyDeps = Agg(
ivy"com.lihaoyi::fansi::0.4.0",
ivy"com.lihaoyi::sourcecode::0.3.0"
ivy"com.lihaoyi::fansi::0.5.0",
ivy"com.lihaoyi::sourcecode::0.4.0"
)

def compileIvyDeps = Agg.when(crossScalaVersion.startsWith("2"))(
Expand All @@ -42,7 +46,7 @@ trait PPrintModule


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

object pprint extends Module {
Expand All @@ -53,13 +57,13 @@ object pprint extends Module {

object js extends Cross[JsPPrintModule](scalaVersions)
trait JsPPrintModule extends PPrintModule with ScalaJSModule {
def scalaJSVersion = "1.10.1"
def scalaJSVersion = "1.12.0"
object test extends ScalaJSTests with PPrintTestModule
}

object native extends Cross[NativePPrintModule](scalaVersions)
trait NativePPrintModule extends PPrintModule with ScalaNativeModule {
def scalaNativeVersion = "0.4.5"
def scalaNativeVersion = "0.5.0"
object test extends ScalaNativeTests with PPrintTestModule
}
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.9.7
9 changes: 9 additions & 0 deletions readme/Readme.scalatex
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,15 @@
display.block
)
@sect{Version History}
@sect{0.9.0}
@ul
@li
Support for Scala-Native 0.5.0
@li
Dropped support for Scala 2.11.x
@li
Minimum version of Scala 3 increased to 3.3.1

@sect{0.7.3}
@ul
@li
Expand Down

0 comments on commit fa319a3

Please sign in to comment.