-
Notifications
You must be signed in to change notification settings - Fork 331
Upgrade zio json #2804
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
Merged
+25
−14
Merged
Upgrade zio json #2804
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -176,7 +176,8 @@ val slf4jVersion = "1.7.36" | |
|
|
||
| val compileAndTest = "compile->compile;test->test" | ||
|
|
||
| lazy val loomProjects: Seq[String] = Seq(ox, examples).flatMap(_.projectRefs).flatMap(projectId) | ||
| lazy val loomProjects: Seq[String] = Seq(ox, examples, zioJson).flatMap(_.projectRefs).flatMap(projectId) | ||
mijicd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| lazy val zioProjects: Seq[String] = Seq(zioJson).flatMap(_.projectRefs).flatMap(projectId) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that |
||
|
|
||
| def projectId(projectRef: ProjectReference): Option[String] = | ||
| projectRef match { | ||
|
|
@@ -193,15 +194,24 @@ lazy val allAggregates: Seq[ProjectReference] = { | |
| println("[info] STTP_NATIVE *not* defined, *not* including native in the aggregate projects") | ||
| rawAllAggregates.filterNot(_.toString.contains("Native")) | ||
| } | ||
|
|
||
| val filteredByZio = if (sys.env.isDefinedAt("WITH_ZIO")) { | ||
| println("[info] WITH_ZIO defined, including zio projects in the aggregate projects") | ||
| filteredByNative | ||
| } else { | ||
| println("[info] WITH_ZIO *not* defined, *not* including zio-json in the aggregate projects") | ||
| filteredByNative.filterNot(p => projectId(p).forall(zioProjects.contains)) | ||
| } | ||
|
|
||
| if (sys.env.isDefinedAt("ONLY_LOOM")) { | ||
| println("[info] ONLY_LOOM defined, including only loom-based projects") | ||
| filteredByNative.filter(p => projectId(p).forall(loomProjects.contains)) | ||
| filteredByZio.filter(p => projectId(p).forall(loomProjects.contains)) | ||
| } else if (sys.env.isDefinedAt("ALSO_LOOM")) { | ||
| println("[info] ALSO_LOOM defined, including also loom-based projects") | ||
| filteredByNative | ||
| filteredByZio | ||
| } else { | ||
| println("[info] ONLY_LOOM *not* defined, *not* including loom-based-projects") | ||
| filteredByNative.filterNot(p => projectId(p).forall(loomProjects.contains)) | ||
| filteredByZio.filterNot(p => projectId(p).forall(loomProjects.contains)) | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -789,7 +799,7 @@ lazy val zioJson = (projectMatrix in file("json/zio-json")) | |
| .settings( | ||
| name := "zio-json", | ||
| libraryDependencies ++= Seq( | ||
| "dev.zio" %%% "zio-json" % "0.7.44", | ||
| "dev.zio" %%% "zio-json" % "0.9.0", | ||
| "com.softwaremill.sttp.shared" %%% "zio" % sttpSharedVersion | ||
| ), | ||
| scalaTest | ||
|
|
@@ -799,6 +809,7 @@ lazy val zioJson = (projectMatrix in file("json/zio-json")) | |
| settings = commonJvmSettings | ||
| ) | ||
| .jsPlatform(scalaVersions = scala2And3, settings = commonJsSettings) | ||
| .nativePlatform(scalaVersions = scala2And3, settings = commonNativeSettings) | ||
| .dependsOn(core, jsonCommon % compileAndTest) | ||
|
|
||
| lazy val zio1Json = (projectMatrix in file("json/zio1-json")) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this excludes zio project, but it resembles the old behavior where no modules but loom ones are tested/published for this particular build point (3, JVM, 21). We can adjust this if necessary (e.g. using
ALSO_LOOM?).