Skip to content

Commit 3054f4d

Browse files
committed
Set up a subject for live activities
1 parent b45be76 commit 3054f4d

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

build.sbt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,3 +457,18 @@ lazy val reportExtractor = lambda("reportextractor", "reportextractor", Some("co
457457
ExclusionRule(organization = "com.typesafe.play")
458458
)
459459
)
460+
461+
lazy val liveactivities = lambda("liveactivities", "liveactivities", Some("com.gu.liveactivities.LambdaLocalRun"))
462+
.dependsOn(common)
463+
.dependsOn(apiModels % "test->test", apiModels % "compile->compile")
464+
.settings(
465+
libraryDependencies ++= Seq(
466+
"com.squareup.okhttp3" % "okhttp" % okHttpVersion,
467+
),
468+
excludeDependencies ++= Seq(
469+
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
470+
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
471+
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
472+
ExclusionRule(organization = "com.typesafe.play")
473+
),
474+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.gu.liveactivities
2+
3+
object ChannelManagerLambda {
4+
5+
def handleRequest(): Unit = {
6+
7+
}
8+
}
9+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.gu.liveactivities
2+
3+
object LambdaLocalRun extends App {
4+
5+
println("Start running ChannelManagerLambda locally")
6+
ChannelManagerLambda.handleRequest()
7+
println("Finished running ChannelManagerLambda locally")
8+
}

0 commit comments

Comments
 (0)