-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
Use Scala 2.13 in the REST samples #37
Use Scala 2.13 in the REST samples #37
Conversation
The idea is that this project can use whichever version of Scala is supported by Gatling. This commit also updates the Scala version to be 2.13, and updates Play to 2.8.0-M2. Finally, some minor refactoring was done in the Gatling test to make it simpler.
This comment has been minimized.
This comment has been minimized.
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.
Just a minor comment wrt README maintenance cost (a link with a 2.7.x
). We can fix on a separate PR.
sbt ++$TRAVIS_SCALA_VERSION test | ||
|
||
# At least verifies that Gatling tests are compiling | ||
sbt ++$TRAVIS_SCALA_VERSION ";project gatling; gatling:compile" |
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.
Oh, wow. That's a change...
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.
Hmmm, maybe I misundertstood.
Is this change required because of the change in the gatling version or was this a bug in the script (not running gatling and doing a noop test
)?
|
||
### Usage | ||
|
||
If you call the same URL from the command line, you’ll see JSON. Using httpie, we can execute the command: | ||
If you call the same URL from the command line, you’ll see JSON. Using [httpie](https://httpie.org/), we can execute the command: |
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.
nice!
javacOptions ++= Seq( | ||
"-Xlint:unchecked", | ||
"-Xlint:deprecation" | ||
) |
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 great. We should be more disciplined with what idioms we recommend for sbt
code.
@@ -1,6 +1,6 @@ | |||
# play-java-rest-api-example | |||
|
|||
A REST API showing Play with a JPA backend. For the Scala version, please see <https://github.com/playframework/play-scala-rest-api-example>. | |||
A REST API showing Play with a JPA backend. For the Scala version, please see <https://github.com/playframework/play-samples/tree/2.7.x/play-scala-rest-api-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.
use a relative path to decrease maintenance cost?
@@ -14,7 +14,8 @@ You will need to have [git](https://git-scm.com/) installed. | |||
You can clone the example project from GitHub: | |||
|
|||
```bash | |||
git clone https://github.com/playframework/play-scala-rest-api-example.git | |||
git clone https://github.com/playframework/play-samples.git | |||
cd play-scala-rest-api-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.
👍🏼
``` Updated with template-control on 2019-02-01T10:40:32.809Z /.mergify.yml: wrote /.mergify.yml ```
…o 2.6.x * play-java-compile-di-example/2.6.x: (44 commits) Nest play-java-compile-di-example Updated with template-control on 2019-02-13T20:25:39.247Z (playframework#53) Upgrade branch 2.6.x using TemplateControl (playframework#51) Updated with template-control on 2019-01-17T15:10:57.466Z /.mergify.yml: wrote /.mergify.yml Updated with template-control on 2019-01-16T12:08:45.201Z /LICENSE: wrote /LICENSE /NOTICE: wrote /NOTICE /.mergify.yml: wrote /.mergify.yml Upgrade branch 2.6.x using TemplateControl (playframework#47) Updated with template-control on 2019-01-04T17:13:23.849Z (playframework#42) Remove oraclejdk10 (EOLed) Updated with template-control on 2018-11-29T15:50:43.084Z /.mergify.yml: wrote /.mergify.yml **build.sbt: scalaVersion := "2.12.7" Updated with template-control on 2018-10-08T19:11:40.693Z **/plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20") **build.gradle: def playVersion = "2.6.20" Updated with template-control on 2018-09-11T20:14:49.826Z (playframework#37) Updated with template-control on 2018-08-20T20:37:13.525Z (playframework#36) Updated with template-control on 2018-07-19T01:58:55.323Z (playframework#34) Updated with template-control on 2018-07-16T18:38:44.960Z (playframework#33) Upgrade branch 2.6.x using TemplateControl (playframework#32) Updated with template-control on 2018-05-27T23:54:09.062Z (playframework#31) Updated with template-control on 2018-04-06T19:34:57.520Z (playframework#29) Updated with template-control on 2018-03-02T18:56:27.911Z (playframework#28) Upgrade branch 2.6.x using TemplateControl (playframework#27) Fix cross build to sbt 1.1.0 (playframework#26) ...
* play-scala-forms-example/2.6.x: (43 commits) Nest play-scala-forms-example Updated with template-control on 2019-02-13T20:25:39.527Z (playframework#57) Upgrade branch 2.6.x using TemplateControl (playframework#55) Updated with template-control on 2019-01-17T15:10:57.862Z /.mergify.yml: wrote /.mergify.yml Updated with template-control on 2019-01-16T12:08:45.677Z /LICENSE: wrote /LICENSE /NOTICE: wrote /NOTICE /.mergify.yml: wrote /.mergify.yml **build.gradle: playTest "org.scalatestplus.play:scalatestplus-play_$scalaVersion:3.1.2" Updated with template-control on 2019-01-08T14:44:42.058Z **/plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.21") **build.gradle: def playVersion = "2.6.21" **build.gradle: playTest "org.scalatestplus.play:scalatestplus-play_\$scalaVersion:3.1.2" Updated with template-control on 2019-01-04T17:13:23.715Z (playframework#48) Upgrade branch 2.6.x using TemplateControl (playframework#47) Updated with template-control on 2018-10-08T19:11:40.851Z **/plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20") **build.gradle: def playVersion = "2.6.20" Updated with template-control on 2018-09-11T20:14:49.844Z (playframework#43) Updated with template-control on 2018-08-20T20:37:13.701Z (playframework#42) Updated with template-control on 2018-07-19T01:58:55.810Z (playframework#40) Updated with template-control on 2018-07-16T18:38:45.350Z (playframework#39) Upgrade branch 2.6.x using TemplateControl (playframework#38) Updated with template-control on 2018-05-27T23:54:09.254Z (playframework#37) Updated with template-control on 2018-04-06T19:34:57.899Z (playframework#34) Updated with template-control on 2018-03-02T18:56:27.993Z (playframework#33) Upgrade branch 2.6.x using TemplateControl (playframework#32) Fix cross build to sbt 1.1.0 (playframework#31) Fixed typos, formatting (playframework#30) ...
….6.x * play-scala-log4j2-example/2.6.x: (36 commits) Nest play-scala-log4j2-example Updated with template-control on 2019-02-13T20:25:39.787Z (playframework#39) Upgrade branch 2.6.x using TemplateControl (playframework#37) Updated with template-control on 2019-01-17T15:10:57.918Z /.mergify.yml: wrote /.mergify.yml Updated with template-control on 2019-01-16T12:08:45.730Z /LICENSE: wrote /LICENSE /NOTICE: wrote /NOTICE /.mergify.yml: wrote /.mergify.yml **build.gradle: playTest "org.scalatestplus.play:scalatestplus-play_$scalaVersion:3.1.2" Updated with template-control on 2019-01-08T14:44:41.516Z (playframework#33) Updated with template-control on 2019-01-04T17:13:24.081Z (playframework#28) Remove JDK 9 & 10 Updated with template-control on 2018-11-29T15:50:43.150Z /.mergify.yml: wrote /.mergify.yml Updated with template-control on 2018-10-08T19:11:41.210Z **/plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20") **build.gradle: def playVersion = "2.6.20" Updated with template-control on 2018-09-11T20:14:50.549Z (playframework#23) set log4j2.xml as javaOptions (playframework#20) Updated with template-control on 2018-08-20T20:37:13.971Z (playframework#22) Updated with template-control on 2018-07-19T01:58:55.708Z (playframework#19) Updated with template-control on 2018-07-16T18:38:45.739Z (playframework#18) Upgrade branch 2.6.x using TemplateControl (playframework#17) Updated with template-control on 2018-05-27T23:54:08.860Z (playframework#16) Updated with template-control on 2018-04-06T19:34:58.294Z (playframework#14) Updated with template-control on 2018-03-02T18:56:28.624Z (playframework#13) Upgrade branch 2.6.x using TemplateControl (playframework#12) ...
Follow up to #36.