Conversation
Hmmm, weird CI failure, could be linked to Coursier: sbt/sbt#4296 Will have to dig deeper. |
Yeah, it seems unrelated to the code change. Edit: Ahh... I've checked the linked sbt issue, so it's because of the scala version. |
@@ -627,6 +627,70 @@ lazy val `java-support` = (project in file("java-support")) | |||
) | |||
) | |||
|
|||
lazy val `scala-support` = (project in file("scala-support")) |
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.
Try addding this project to aggregate
:
.aggregate(`proxy-core`,
`proxy-cassandra`,
`proxy-postgres`,
`java-support`,
`scala-support`, <--- HERE
`java-shopping-cart`,
`akka-client`,
operator,
`tck`,
docs)
.settings(common)
I am currently having an issue with the assembly of the
My gut feeling says, that the Edit: It's maybe a local issue, because Travis is not complaining. |
PB.generate in Compile := (PB.generate in Compile).dependsOn(PB.generate in (`scala-support`, Compile)).value, | ||
PB.protoSources in Compile ++= { | ||
val baseDir = (baseDirectory in ThisBuild).value / "protocols" | ||
Seq(baseDir / "frontend", baseDir / "example") |
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.
@janory Have you tried
Seq(baseDir / "frontend", baseDir / "example") | |
Seq(baseDir / "example") |
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.
@viktorklang
I've checked out the branch & run the TCK on a different computer and it worked well, so I will cleanup the project and try it again. It is definitely a local issue.
The TCK is almost complete, the only issue is this:
[info] - must verify that the HTTP API of ShoppingCart protocol works *** FAILED ***
"...ems":[{"productId":"[B14623482","name":"Basic","quantity":1},{"productId":"A14362347","name":"Deluxe","quantity":7]}]}" did not equal "...ems":[{"productId":"[A14362347","name":"Deluxe","quantity":7},{"productId":"B14623482","name":"Basic","quantity":1]}]}"
It is the same content, but the order is different.
I will check the implementation and fix the order, although maybe we can relax the TCK's check to ignore the order and focus only the content, because my guess is, that the order here is not important.
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.
@janory I had the excactly same "issue" in the Go Support first :-), had the items in a list that is not ordered.
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.
@marcellanz :)
It's a one liner fix, but I am just not sure, if we really need to enforce the order here.
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.
Had the same thought, yes.
There are other implicit requirements by the shopping cart tck example. Adding negative amounts of line-items, or better not allowing it, as an example. As the shopping cart is used to verify the spec through the TCK, we perhaps might document these requirements within the shoppingcart.proto file.
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.
The reason for checking the response as a String was to avoid having parsing influencing things needlessly. I'm very much open for a better way of verifying the responses :)
@janory Ok, so the next steps is to create a Scala-idiomatic API, and then once that's done, to see what commonalities still exist between the java and scala support, and pull those out into a jvm-support library? |
@viktorklang exactly! But, I think those should happen in separate PRs. |
"org.slf4j" % "slf4j-simple" % "1.7.26", | ||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9.3" | ||
), | ||
javacOptions in Compile ++= Seq("-encoding", "UTF-8"), |
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.
Move this to the other javacOptiuons above?
@janory Cool, let the next step begin! :) |
Steps: