Skip to content

Commit

Permalink
Initial setup and sample codecs. (#104)
Browse files Browse the repository at this point in the history
* Initial setup and sample codecs.

* Reformat the code.
  • Loading branch information
AttilaMihaly authored Apr 20, 2022
1 parent d408495 commit 7d5465e
Show file tree
Hide file tree
Showing 10 changed files with 126 additions and 1,501 deletions.
32 changes: 32 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,38 @@ object morphir extends Module {
}
}

object json extends Module {
object jvm
extends Cross[JvmMorphirSdkJson](
Versions.scala212
)
class JvmMorphirSdkJson(val crossScalaVersion: String)
extends CrossScalaModule
with CommonJvmModule
with MorphirPublishModule { self =>

def artifactName = "morphir-sdk-json"
def compileIvyDeps = Agg(
ivy"io.circe::circe-core:0.14.1",
ivy"io.circe::circe-generic:0.14.1",
ivy"io.circe::circe-parser:0.14.1"
)
def moduleDeps = Seq(morphir.sdk.core.jvm(crossScalaVersion))

object test extends Tests {
def platformSegment: String = self.platformSegment
def crossScalaVersion = JvmMorphirSdkJson.this.crossScalaVersion

override def ivyDeps = super.ivyDeps() ++
Agg(
ivy"io.circe::circe-core:0.14.1",
ivy"io.circe::circe-generic:0.14.1",
ivy"io.circe::circe-parser:0.14.1"
)
}
}
}

object spark extends Module {
object jvm
extends Cross[JvmMorphirSdkSpark](
Expand Down
Loading

0 comments on commit 7d5465e

Please sign in to comment.