-
Notifications
You must be signed in to change notification settings - Fork 0
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
Move to multi-project build and make it riff-raff deployable #7
Conversation
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.
Great!
@@ -1 +1,5 @@ | |||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.2") | |||
|
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.
Do we still need native packager now the build has changed?
lazy val `client-lib` = project | ||
.settings( | ||
name := "client-lib", | ||
libraryDependencies ++= dependencies, |
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.
This is fine for now, but I suspect the dependencies will differ.
(client lib won't need AWS features apart from SNS, shouldn't include logging (might conflict with other people's loggers) and won't need a markdown parser)
Conflicts: anghammarad/src/test/scala/com/gu/anghammarad/ContactsTest.scala
97ccf51
to
b460f18
Compare
After discussing with @adamnfish, we decided to use a multi-project build so that we can have a client-library in this repo at a later date. I've tweaked build.sbt accordingly, and have also added the necessary plugins to create a .jar with sbt assembly and deploy the project with riff-raff.
I've also added a basic riff-raff.yaml which deploys the lambda.
I tried to use riff-raff to run cloudformation updates too, but this was failing (I think due to the SAM transform?), so I will dig around a bit more and add this back in later (i.e. in a different PR) if possible.
Also to-do: