Skip to content
This repository was archived by the owner on Apr 23, 2019. It is now read-only.

Upgrade branch 2.7.x using TemplateControl#82

Merged
mergify[bot] merged 18 commits intoplayframework:2.7.xfrom
octonato:templatecontrol-2.7.x
Dec 20, 2018
Merged

Upgrade branch 2.7.x using TemplateControl#82
mergify[bot] merged 18 commits intoplayframework:2.7.xfrom
octonato:templatecontrol-2.7.x

Conversation

@octonato
Copy link
Contributor

Updated with template-control on 2018-11-16T14:25:15.823Z
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.0-RC3")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "5.0.0-RC1")

octonato and others added 2 commits November 16, 2018 15:25
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.0-RC3")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "5.0.0-RC1")
@ignasi35
Copy link
Member

Needs playframework/playframework#8827 coming in 2.7.0-RC8

@ignasi35 ignasi35 changed the title Upgrade branch 2.7.x using TemplateControl WIP Upgrade branch 2.7.x using TemplateControl Nov 29, 2018
@ignasi35 ignasi35 changed the title WIP Upgrade branch 2.7.x using TemplateControl Upgrade branch 2.7.x using TemplateControl Nov 30, 2018
Co-Authored-By: renatocaval <renato@cavalcanti.be>
<h1 id="homeTitle">@Messages("computers.list.title", currentPage.getTotalCount)</h1>

@if(flash.containsKey("success")) {
@request.flash.asScala().get("success").map { successFlashValue =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is an implicit Http.Request then you can use @flash("key") (also returns a Optional).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I need to review a few other samples.

build.sbt Outdated
libraryDependencies += "org.mockito" % "mockito-core" % "2.1.0" % Test
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")

javacOptions ++= Seq(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add -Werror?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, SGTM. We'll need to adapt other samples too.

if [[ $java_version = 1.8* ]] ; then
echo "The build is using Java 8 ($java_version). No addional JVM params needed."
else
echo "The build is using Java 9+ ($java_version). We need additional JVM parameters"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are not testing against Java 9 anymore, we can completely remove this file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

.travis.yml Outdated
env:
matrix:
- SCRIPT=scripts/test-sbt
# - SCRIPT=scripts/test-gradle
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this running since it is allowed to fail.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scripts/test-gradle doesn't exist. It's a different type of failure but I guess we can live with that and have identical .travis.yml in exchange. 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... this is the Ebean sample.

Now I remember that it does not work on Gradle because the project depends on play-enhancer. So, yeah we can keep Gradle out here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, should we merge this or not?

<h1 id="homeTitle">@Messages("computers.list.title", currentPage.getTotalCount)</h1>

@if(flash.containsKey("success")) {
@flash("success").map { successFlashValue =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking the build, and reveals a glitch in the current APIs:

playframework/playframework#8866

@mergify mergify bot merged commit b4edb9c into playframework:2.7.x Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants