-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mercury): Fix project mercury-mediator ATL-2030
- Loading branch information
1 parent
2b43af5
commit ead1dd4
Showing
8 changed files
with
71 additions
and
278 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
version = "3.5.3" | ||
runner.dialect = scala3 | ||
version = 3.5.8 | ||
runner.dialect = scala3 | ||
|
||
maxColumn = 120 | ||
trailingCommas = preserve |
This file contains 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 |
---|---|---|
|
@@ -15,10 +15,7 @@ inThisBuild( | |
val apiBaseDirectory = | ||
settingKey[File]("The base directory for Castor API specifications") | ||
ThisBuild / apiBaseDirectory := baseDirectory.value / ".." / "api" | ||
ThisBuild / resolvers += Resolver.githubPackages( | ||
"input-output-hk", | ||
"atala-prism-building-blocks" | ||
) | ||
ThisBuild / resolvers += Resolver.githubPackages("input-output-hk", "atala-prism-building-blocks") | ||
|
||
lazy val V = new { | ||
val munit = "1.0.0-M6" // "0.7.29" | ||
|
@@ -33,35 +30,24 @@ lazy val V = new { | |
// https://mvnrepository.com/artifact/io.circe/circe-core | ||
val circe = "0.14.2" | ||
|
||
val tapir = "1.0.3" | ||
|
||
val mercury = "0.2.0" | ||
} | ||
|
||
/** Dependencies */ | ||
lazy val D = new { | ||
|
||
val mercuryModels = | ||
Def.setting("io.iohk.atala" %% "mercury-data-models" % V.mercury) | ||
// val mercury10 = Def.setting("io.iohk.atala" %% "mercury-agent-didscala" % V.mercury) | ||
// val mercury11 = Def.setting("io.iohk.atala" %% "mercury-agent-core" % V.mercury) | ||
val mercuryAgent = | ||
Def.setting("io.iohk.atala" %% "mercury-agent-didcommx" % V.mercury) | ||
// val mercury2 = Def.setting("io.iohk.atala" %% "protocol-outofband-login" % V.mercury) //FIXME | ||
val mercury4 = Def.setting("io.iohk.atala" %% "mercury-resolver" % V.mercury) | ||
val mercury3 = | ||
Def.setting("io.iohk.atala" %% "mercury-protocol-routing-2_0" % V.mercury) | ||
val mercury5 = Def.setting( | ||
"io.iohk.atala" %% "mercury-protocol-coordinate-mediation" % V.mercury | ||
) | ||
val mercury6 = | ||
Def.setting("io.iohk.atala" %% "mercury-protocol-invitation" % V.mercury) | ||
val mercury7 = | ||
Def.setting("io.iohk.atala" %% "mercury-protocol-did-exchange" % V.mercury) | ||
val mercury8 = | ||
Def.setting("io.iohk.atala" %% "mercury-protocol-mailbox" % V.mercury) | ||
val mercury9 = | ||
Def.setting("io.iohk.atala" %% "mercury-protocol-connection" % V.mercury) | ||
val mercuryModels = Def.setting("io.iohk.atala" %% "mercury-data-models" % V.mercury) | ||
val mercuryAgent = Def.setting("io.iohk.atala" %% "mercury-agent-didcommx" % V.mercury) | ||
val mercuryResolver = Def.setting("io.iohk.atala" %% "mercury-resolver" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-agent-didscala" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-agent-core" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-outofband-login" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-routing-2_0" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-coordinate-mediation" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-invitation" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-did-exchange" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-mailbox" % V.mercury) | ||
// Def.setting("io.iohk.atala" %% "mercury-protocol-connection" % V.mercury) | ||
|
||
val zio = Def.setting("dev.zio" %% "zio" % V.zio) | ||
val zioStreams = Def.setting("dev.zio" %% "zio-streams" % V.zio) | ||
|
@@ -70,9 +56,7 @@ lazy val D = new { | |
val zioJson = Def.setting("dev.zio" %% "zio-json" % V.zioJson) | ||
|
||
// val zioHttp = Def.setting("dev.zio" %% "zio-http" % V.zioHttp) // FIXME USE THIS ONE | ||
val zioHttp = Def.setting( | ||
"io.d11" %% "zhttp" % V.zioHttp | ||
) // REMOVE (this is the old name) | ||
val zioHttp = Def.setting("io.d11" %% "zhttp" % V.zioHttp) // REMOVE (this is the old name) | ||
|
||
val circeCore = Def.setting("io.circe" %% "circe-core" % V.circe) | ||
val circeGeneric = Def.setting("io.circe" %% "circe-generic" % V.circe) | ||
|
@@ -81,8 +65,7 @@ lazy val D = new { | |
// For munit https://scalameta.org/munit/docs/getting-started.html#scalajs-setup | ||
val munit = Def.setting("org.scalameta" %% "munit" % V.munit % Test) | ||
// For munit zio https://github.com/poslegm/munit-zio | ||
val munitZio = | ||
Def.setting("com.github.poslegm" %% "munit-zio" % V.munitZio % Test) | ||
val munitZio = Def.setting("com.github.poslegm" %% "munit-zio" % V.munitZio % Test) | ||
|
||
} | ||
|
||
|
@@ -97,47 +80,13 @@ lazy val mediator = project | |
.settings(libraryDependencies += D.zio.value) | ||
.settings(libraryDependencies += D.munitZio.value) | ||
.settings( | ||
libraryDependencies ++= Seq( | ||
"org.http4s" %% "http4s-blaze-server" % "0.23.12", | ||
"ch.qos.logback" % "logback-classic" % "1.2.11", | ||
"com.softwaremill.sttp.tapir" %% "tapir-http4s-server-zio" % V.tapir, | ||
"com.softwaremill.sttp.tapir" %% "tapir-http4s-server" % V.tapir, | ||
"com.softwaremill.sttp.tapir" %% "tapir-json-circe" % V.tapir, | ||
// "com.softwaremill.sttp.tapir" %% "tapir-sttp-stub-server" % V.tapir % Test, | ||
// "com.softwaremill.sttp.client3" %% "circe" % "3.7.1" % Test, | ||
"com.softwaremill.sttp.tapir" %% "tapir-openapi-docs" % V.tapir, | ||
"com.softwaremill.sttp.tapir" %% "tapir-openapi-circe-yaml" % "1.0.0-M9", | ||
"com.softwaremill.sttp.tapir" %% "tapir-swagger-ui" % V.tapir, | ||
"com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-http4s" % "0.19.0-M4", | ||
"com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % "1.0.3", // This helps with Arrow Functions. But swagger is just a pain! | ||
"com.softwaremill.sttp.tapir" %% "tapir-redoc-http4s" % "0.19.0-M4", | ||
"com.softwaremill.sttp.apispec" %% "openapi-circe-yaml" % "0.2.1", | ||
D.mercuryModels.value, | ||
D.mercuryAgent.value, | ||
D.mercury3.value, | ||
D.mercury4.value, | ||
D.mercury5.value, | ||
D.mercury6.value, | ||
D.mercury7.value, | ||
D.mercury8.value, | ||
D.mercury9.value | ||
), | ||
libraryDependencies ++= Seq(D.mercuryModels.value, D.mercuryAgent.value), | ||
Compile / unmanagedResourceDirectories += apiBaseDirectory.value, | ||
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")) | ||
// Docker / maintainer := "[email protected]", | ||
// Docker / dockerRepository := Some("atala-prism.io"), | ||
// dockerExposedPorts := Seq(8080), | ||
// dockerBaseImage := "openjdk:11" | ||
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")), | ||
// ### Build Docker Image ### | ||
Docker / maintainer := "[email protected]", | ||
Docker / dockerRepository := Some("atala-prism.io"), | ||
dockerExposedPorts := Seq(8080), | ||
dockerBaseImage := "openjdk:11" | ||
) | ||
// .enablePlugins(JavaAppPackaging, DockerPlugin) | ||
// .dependsOn( | ||
// agentDidcommx, | ||
// resolver, | ||
// protocolInvitation, | ||
// protocolConnection, | ||
// protocolDidExchange, | ||
// protocolMercuryMailbox, | ||
// protocolReportProblem, | ||
// protocolRouting, | ||
// protocolIssueCredential | ||
// ) | ||
.enablePlugins(JavaAppPackaging, DockerPlugin) |
This file contains 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") | ||
// addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.11") | ||
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.9") //1.9.11 | ||
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3") |
106 changes: 0 additions & 106 deletions
106
mercury/mercury-mediator/src/main/scala/io/iohk/atala/mercury/mediator/Endpoints.scala
This file was deleted.
Oops, something went wrong.
67 changes: 0 additions & 67 deletions
67
mercury/mercury-mediator/src/main/scala/io/iohk/atala/mercury/mediator/Mediator.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.