8000 Add support for scala-native by dlesl · Pull Request #341 · tpolecat/atto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for scala-native #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import sbtcrossproject.{ crossProject, CrossType }

lazy val catsVersion = "2.6.1"
lazy val fs2CoreVersion = "2.5.6"
lazy val scalacheckVersion = "1.15.4"
lazy val catsVersion = "2.8.0"
lazy val fs2CoreVersion = "3.3.0"
lazy val scalacheckVersion = "1.17.0"

lazy val scala212 = "2.12.16"
lazy val scala213 = "2.13.6"
lazy val scala30 = "3.0.2"
lazy val scala30 = "3.1.2"

lazy val commonSettings = Seq(
organization := "org.tpolecat",
Expand Down Expand Up @@ -35,21 +33,31 @@ lazy val commonSettings = Seq(
lazy val atto = // defined so we can exclude docs from aggregate
project
.in(file("."))
.dependsOn(core.jvm, core.js, fs2.jvm, fs2.js, refined.jvm, refined.js, tests.jvm, tests.js)
.aggregate(core.jvm, core.js, fs2.jvm, fs2.js, refined.jvm, refined.js, tests.jvm, tests.js)
.dependsOn(
core.jvm, core.js, core.native,
fs2.jvm, fs2.js, fs2.native,
refined.jvm, refined.js, refined.native,
tests.jvm, tests.js, tests.native
)
.aggregate(
core.jvm, core.js, core.native,
fs2.jvm, fs2.js, fs2.native,
refined.jvm, refined.js, refined.native,
tests.jvm, tests.js, tests.native
)
.settings(commonSettings)
.settings(publish / skip := true)

lazy val core =
crossProject(JSPlatform, JVMPlatform)
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/core"))
.settings(commonSettings)
.settings(name := "atto-core")
.settings(libraryDependencies += "org.typelevel" %%% "cats-core" % catsVersion)

lazy val fs2 =
crossProject(JSPlatform, JVMPlatform)
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/fs2"))
.dependsOn(core)
Expand All @@ -63,18 +71,18 @@ lazy val fs2 =
)

lazy val refined =
crossProject(JSPlatform, JVMPlatform)
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/refined"))
.dependsOn(core)
.settings(commonSettings)
.settings(
name := "atto-refined",
libraryDependencies += "eu.timepit" %%% "refined" % "0.9.26",
libraryDependencies += "eu.timepit" %%% "refined" % "0.10.1",
)

lazy val tests =
crossProject(JSPlatform, JVMPlatform)
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/tests"))
.dependsOn(core, refined)
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.5.8
sbt.version=1.7.1
6 changes: 4 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.1")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.2.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.7")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
0