-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle topic not found. Scala 2.12 and sbt 1 (#36)
* Handle topics not found * Publish request to non-existing topic should fail * update .travis.yml
- Loading branch information
Sergey Novikov
authored
Nov 14, 2017
1 parent
623f2f4
commit 5226723
Showing
14 changed files
with
106 additions
and
96 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,90 +1,42 @@ | ||
name := "sns" | ||
|
||
version := "0.1.3" | ||
version := "0.2.0" | ||
|
||
scalaVersion := "2.11.8" | ||
scalaVersion := "2.12.4" | ||
|
||
// sbt-assembly | ||
assemblyJarName in assembly := s"sns-${version.value}.jar" | ||
test in assembly := {} | ||
|
||
libraryDependencies ++= { | ||
val akkaVersion = "2.4.9" | ||
val camelVersion = "2.17.0" | ||
val akkaVersion = "2.5.6" | ||
val akkaHttpVersion = "10.0.10" | ||
val camelVersion = "2.19.4" | ||
|
||
libraryDependencies ++= { | ||
Seq( | ||
"com.typesafe.akka" %% "akka-actor" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-stream" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-http-experimental" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-http-xml-experimental" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaVersion | ||
, | ||
"com.typesafe.akka" %% "akka-http-testkit" % akkaVersion % Test, | ||
|
||
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion, | ||
"com.typesafe.akka" %% "akka-http-xml" % akkaHttpVersion, | ||
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion, | ||
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test, | ||
|
||
"org.slf4j" % "slf4j-api" % "1.7.2", | ||
"ch.qos.logback" % "logback-classic" % "1.0.7", | ||
"com.typesafe.akka" %% "akka-camel" % akkaVersion, | ||
"com.amazonaws" % "aws-java-sdk-sqs" % "1.11.228", | ||
"org.apache.camel" % "camel-aws" % camelVersion | ||
exclude("com.amazonaws", "aws-java-sdk-acm") | ||
exclude("com.amazonaws", "aws-java-sdk-api-gateway") | ||
exclude("com.amazonaws", "aws-java-sdk-autoscaling") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudformation") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudfront") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudwatch") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudwatchmetrics") | ||
exclude("com.amazonaws", "aws-java-sdk-codedeploy") | ||
exclude("com.amazonaws", "aws-java-sdk-codecommit") | ||
exclude("com.amazonaws", "aws-java-sdk-codepipeline") | ||
exclude("com.amazonaws", "aws-java-sdk-cognitoidentity") | ||
exclude("com.amazonaws", "aws-java-sdk-cognitosync") | ||
exclude("com.amazonaws", "aws-java-sdk-datapipeline") | ||
exclude("com.amazonaws", "aws-java-sdk-directconnect") | ||
exclude("com.amazonaws", "aws-java-sdk-kinesis") | ||
exclude("com.amazonaws", "aws-java-sdk-opsworks") | ||
exclude("com.amazonaws", "aws-java-sdk-ses") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudsearch") | ||
exclude("com.amazonaws", "aws-java-sdk-swf-libraries") | ||
exclude("com.amazonaws", "aws-java-sdk-lambda") | ||
exclude("com.amazonaws", "aws-java-sdk-ecs") | ||
exclude("com.amazonaws", "aws-java-sdk-workspaces") | ||
exclude("com.amazonaws", "aws-java-sdk-machinelearning") | ||
exclude("com.amazonaws", "aws-java-sdk-directory") | ||
exclude("com.amazonaws", "aws-java-sdk-efs") | ||
exclude("com.amazonaws", "aws-java-sdk-waf") | ||
exclude("com.amazonaws", "aws-java-sdk-marketplacecommerceanalytics") | ||
exclude("com.amazonaws", "aws-java-sdk-inspector") | ||
exclude("com.amazonaws", "aws-java-sdk-iot") | ||
exclude("com.amazonaws", "aws-java-sdk-gamelift") | ||
exclude("com.amazonaws", "aws-java-sdk-simpledb") | ||
exclude("com.amazonaws", "aws-java-sdk-simpleworkflow") | ||
exclude("com.amazonaws", "aws-java-sdk-storagegateway") | ||
exclude("com.amazonaws", "aws-java-sdk-s3") | ||
exclude("com.amazonaws", "aws-java-sdk-route53") | ||
exclude("com.amazonaws", "aws-java-sdk-kms") | ||
exclude("com.amazonaws", "aws-java-sdk-sts") | ||
exclude("com.amazonaws", "aws-java-sdk-rds") | ||
exclude("com.amazonaws", "aws-java-sdk-redshift") | ||
exclude("com.amazonaws", "aws-java-sdk-glacier") | ||
exclude("com.amazonaws", "aws-java-sdk-elasticloadbalancing") | ||
exclude("com.amazonaws", "aws-java-sdk-emr") | ||
exclude("com.amazonaws", "aws-java-sdk-ec2") | ||
exclude("com.amazonaws", "aws-java-sdk-elasticache") | ||
exclude("com.amazonaws", "aws-java-sdk-dynamodb") | ||
exclude("com.amazonaws", "aws-java-sdk-iam") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudtrail") | ||
exclude("com.amazonaws", "aws-java-sdk-elastictranscoder") | ||
exclude("com.amazonaws", "aws-java-sdk-elasticsearch") | ||
exclude("com.amazonaws", "aws-java-sdk-ssm") | ||
exclude("com.amazonaws", "aws-java-sdk-cloudhsm") | ||
exclude("com.amazonaws", "aws-java-sdk-devicefarm") | ||
exclude("com.amazonaws", "aws-java-sdk-elasticbeanstalk") | ||
exclude("com.amazonaws", "aws-java-sdk-ecr") | ||
excludeAll ExclusionRule(organization = "com.amazonaws") | ||
, | ||
"org.apache.camel" % "camel-http" % camelVersion, | ||
"org.apache.camel" % "camel-rabbitmq" % camelVersion, | ||
"org.apache.camel" % "camel-slack" % camelVersion | ||
exclude("junit", "junit") | ||
, | ||
"org.scalatest" %% "scalatest" % "3.0.0" % Test | ||
"org.scalatest" %% "scalatest" % "3.0.4" % Test | ||
) | ||
} | ||
|
||
dependencyOverrides += "com.typesafe.akka" %% "akka-actor" % akkaVersion | ||
dependencyOverrides += "com.typesafe.akka" %% "akka-stream" % akkaVersion |
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
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 +1 @@ | ||
sbt.version=0.13.9 | ||
sbt.version=1.0.3 |
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("com.eed3si9n" % "sbt-assembly" % "0.14.3") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5") | ||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2") | ||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") | ||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.0") |
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
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
4 changes: 4 additions & 0 deletions
4
src/main/scala/me/snov/sns/model/TopicNotFoundException.scala
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package me.snov.sns.model | ||
|
||
class TopicNotFoundException(msg: String) extends RuntimeException(msg) | ||
|
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
Oops, something went wrong.