Skip to content

Commit

Permalink
Merge pull request #333 from cquiroz/update
Browse files Browse the repository at this point in the history
Library updates
  • Loading branch information
cquiroz authored May 8, 2024
2 parents 88cf8cf + 1c1dc33 commit 92ac620
Show file tree
Hide file tree
Showing 11 changed files with 200 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use flake
layout node
eval "$shellHook"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ project/metals.sbt
.bloop
/project/project/
/project/target/
.direnv/
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ lazy val api = crossProject(JSPlatform, JVMPlatform, NativePlatform)
name := "cldr-api",
scalaVersion := scalaVersion212,
description := "scala-java-locales cldrl api",
crossScalaVersions := Seq(scalaVersion212, "2.13.13", "3.3.3"),
crossScalaVersions := Seq(scalaVersion212, "2.13.14", "3.4.1"),
libraryDependencies ++= List(
("org.portable-scala" %%% "portable-scala-reflect" % "1.1.2").cross(CrossVersion.for3Use2_13),
"org.scalameta" %%% "munit" % "1.0.0-M7" % Test
"org.scalameta" %%% "munit" % "1.0.0-RC1" % Test
),
testFrameworks += new TestFramework("munit.Framework")
)
Expand Down
156 changes: 156 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
inputs = {
typelevel-nix.url = "github:typelevel/typelevel-nix";
nixpkgs.follows = "typelevel-nix/nixpkgs";
flake-utils.follows = "typelevel-nix/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, typelevel-nix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs-x86_64 = import nixpkgs { system = "x86_64-darwin"; };
scala-cli-overlay = final: prev: { scala-cli = pkgs-x86_64.scala-cli; };
pkgs = import nixpkgs {
inherit system;
overlays = [ typelevel-nix.overlay scala-cli-overlay ];
};
in {
devShell = pkgs.devshell.mkShell {
imports = [ typelevel-nix.typelevelShell ];
typelevelShell = {
nodejs.enable = true;
jdk.package = pkgs.jdk8;
};
};
}

);
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.9
sbt.version=1.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ lazy val root =
.settings(
name := "no-filtering",
cldrVersion := CLDRVersion.Version("38.1"),
scalaVersion := "3.0.0-M3",
scalaVersion := "3.4.1",
localesFilter := LocalesFilter.Selection("en-US", "fi", "fi-FI"),
nsFilter := NumberingSystemFilter.Minimal,
currencyFilter := CurrencyFilter.Selection("EUR"),
supportISOCodes := true,
supportNumberFormats := true,
libraryDependencies += ("org.portable-scala" %%% "portable-scala-reflect" % "1.1.1").withDottyCompat(scalaVersion.value)
)
.nativeSettings(
scalaVersion := "2.13.4"
libraryDependencies += ("org.portable-scala" %%% "portable-scala-reflect" % "1.1.2").cross(CrossVersion.for3Use2_13)
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ addSbtPlugin(
)

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.3")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1")
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.5")
2 changes: 1 addition & 1 deletion sbt-locales/src/sbt-test/sbt-locales/common-filtering/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
> managedSources
$ exec cat jvm/target/scala-3.0.0-M3/src_managed/main/locales/cldr/data/data.scala
$ exec cat jvm/target/scala-3.4.1/src_managed/main/locales/cldr/data/data.scala
> compile
4 changes: 2 additions & 2 deletions sbt-locales/src/sbt-test/sbt-locales/no-filtering/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ lazy val root =
.in(file("."))
.settings(
name := "no-filtering",
scalaVersion := "2.13.4",
scalaVersion := "2.13.14",
cldrVersion := CLDRVersion.Version("35.0"),
localesFilter := LocalesFilter.All,
nsFilter := NumberingSystemFilter.All,
calendarFilter := CalendarFilter.All,
libraryDependencies += "org.portable-scala" %%% "portable-scala-reflect" % "1.1.1"
libraryDependencies += "org.portable-scala" %%% "portable-scala-reflect" % "1.1.2"
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ addSbtPlugin(
)
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.1.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.3")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1")

0 comments on commit 92ac620

Please sign in to comment.