Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
57b36bf
feat: r2dbc persistence
lchen-2101 Feb 27, 2026
5997f30
fix: explicit args for polymorphic expression
lchen-2101 Mar 2, 2026
e81f857
feat: r2dbc akka persistence
lchen-2101 Mar 4, 2026
03ff419
Merge branch 'master' into feat/r2dbc_persistence
lchen-2101 Mar 4, 2026
7635b70
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 5, 2026
d6851ef
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 9, 2026
e34fce1
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 9, 2026
346d6e6
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 9, 2026
c991935
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 9, 2026
87204d5
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 9, 2026
ab18e00
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 10, 2026
e7036e1
feat: akka persistence migrate cassandra to postgres
lchen-2101 Mar 11, 2026
61fef89
feat: akka persistence migrate cassandra to postgres
lchen-2101 Apr 1, 2026
5a40d89
feat: add sequential migrate so failed persistence id can be logged
lchen-2101 Apr 10, 2026
32fcce1
feat: skip 2018 parser error persistence
lchen-2101 Apr 10, 2026
e9a4475
feat: skip test leis
lchen-2101 Apr 23, 2026
4af1112
Merge branch 'master' into feat/r2dbc_persistence
lchen-2101 Apr 23, 2026
afc7283
feat: skip test leis
lchen-2101 Apr 29, 2026
77b7121
feat: akhq docker compose
lchen-2101 Apr 29, 2026
cfd4b5c
Merge branch 'master' into feat/r2dbc_persistence
lchen-2101 May 18, 2026
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
49 changes: 46 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ lazy val akkaPersistenceDeps =
akkaPersistenceTyped,
akkaPersistenceQuery,
akkaClusterShardingTyped,
akkaPersistenceCassandra,
keyspacedriver
akkaPersistenceR2DBC,
akkaPersistenceCassandra
)

lazy val akkaHttpDeps =
Expand Down Expand Up @@ -157,7 +157,6 @@ lazy val common = (project in file("common"))
cormorant, cormorantGeneric, scalaMock, scalacheckShapeless, diffx
)
),
// addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
// https://github.com/aws-samples/amazon-keyspaces-java-driver-helpers
Runtime / unmanagedBase := baseDirectory.value / "lib"
Expand Down Expand Up @@ -185,6 +184,7 @@ lazy val `hmda-platform` = (project in file("hmda"))
case "cinnamon-reference.conf" => MergeStrategy.concat
case "META-INF/io.netty.versions.properties" => MergeStrategy.concat
case "logback.xml" => MergeStrategy.concat
case "version.conf" => MergeStrategy.concat
case "META-INF/MANIFEST.MF" => MergeStrategy.discard
case PathList("META-INF", xs@_*) => MergeStrategy.concat
case PathList("org", "bouncycastle", xs @_*) => MergeStrategy.first
Expand Down Expand Up @@ -842,3 +842,46 @@ lazy val `hmda-quarterly-data-service` = (project in file ("hmda-quarterly-data-
)
.dependsOn(common % "compile->compile;test->test")
.dependsOn(`hmda-protocol` % "compile->compile;test->test")

lazy val `hmda-persistence-migrator` = (project in file ("hmda-persistence-migrator"))
.enablePlugins(
JavaServerAppPackaging,
sbtdocker.DockerPlugin,
AshScriptPlugin
)
.settings(hmdaBuildSettings: _*)
.settings(
Seq(
libraryDependencies += "com.lightbend.akka" %% "akka-persistence-r2dbc-migration" % "1.3.12",
libraryDependencies ++= slickDeps,
// libraryDependencies ++= commonDeps ++ akkaDeps ++ akkaHttpDeps ++ circeDeps ++ slickDeps ++
// enumeratumDeps :+ monix :+ lettuce :+ scalaMock,
assembly / assemblyMergeStrategy := {
case "application.conf" => MergeStrategy.concat
case "META-INF/io.netty.versions.properties" => MergeStrategy.concat
case "META-INF/MANIFEST.MF" => MergeStrategy.discard
case "version.conf" => MergeStrategy.concat
case PathList("META-INF", xs@_*) => MergeStrategy.concat
case PathList("org", "bouncycastle", xs @_*) => MergeStrategy.first
case PathList("jakarta", xs@_*) => MergeStrategy.last
case PathList(ps @ _*) if ps.last endsWith ".proto" =>
MergeStrategy.first
case "module-info.class" => MergeStrategy.concat
case x if x.endsWith("/module-info.class") => MergeStrategy.concat
case x if x.endsWith("/LineTokenizer.class") => MergeStrategy.concat
case x if x.endsWith("/LogSupport.class") => MergeStrategy.concat
case x if x.endsWith("/MailcapFile.class") => MergeStrategy.concat
case x if x.endsWith("/MimeTypeFile.class") => MergeStrategy.concat
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
},
assembly / assemblyJarName := {
s"${name.value}.jar"
}
),
dockerSettings,
packageSettings
)
.dependsOn(common % "compile->compile;test->test")
.dependsOn(`hmda-protocol` % "compile->compile;test->test")
21 changes: 21 additions & 0 deletions common/src/main/resources/kafka.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
kafka {
hosts = "localhost:9092"
hosts = ${?KAFKA_CLUSTER_HOSTS}
idle-timeout = 5
idle-timeout = ${?KAFKA_IDLE_TIMEOUT}
security.protocol=""
security.protocol=${?KAFKA_SECURITY}

# ssl.truststore.location = ""
# ssl.truststore.location = ${?TRUSTSTORE_PATH}
# ssl.truststore.password = ""
# ssl.truststore.password = ${?TRUSTSTORE_PASSWORD}
# ssl.endpoint = ""
# ssl.endpoint = ${?KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG}
sasl.mechanism="AWS_MSK_IAM"
#sasl.mechanism=${?KAFKA_SASL_MECHANISM}
sasl.jaas.config="software.amazon.msk.auth.iam.IAMLoginModule required;"
# sasl.jaas.config="{?KAFKA_SASL_JAAS_CONFIG}"
sasl.client.callback.handler.class="software.amazon.msk.auth.iam.IAMClientCallbackHandler"
#sasl.client.callback.handler.class="{?KAFKA_SASL_CLASS}"
}
Loading
Loading