Giter Club home page Giter Club logo

Comments (3)

hakandilek avatar hakandilek commented on August 27, 2024

Hi Łukasz, thanks for letting me know. Can you help with this one?

from play2-crud.

CodeCraftStudio avatar CodeCraftStudio commented on August 27, 2024

I can try, but I don't know Scala, and I'm just starting with Play. When I add boolean (for testing) to controllers.Assets.at(path, file, false/true), this problem disappears, but another one (in Scala) appear.

from play2-crud.

gbersac avatar gbersac commented on August 27, 2024

I recently switched a project which version was 2.3 to version 2.2 in order to use play2-crud.

Configuration

Switching from to another was quite a nightmare. I ended up copy paste almost every conf file of the activator sample project of play2-crud.

Play 2.3 configuration file

build.sbt

name := """appGestion"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.11.1"

resolvers += "jBCrypt Repository" at "http://repo1.maven.org/maven2/org/"

libraryDependencies ++= Seq(
    javaJdbc,
    javaEbean,
    cache,
    javaWs,
    "mysql" % "mysql-connector-java" % "5.1.+",
    "org.mindrot" % "jbcrypt" % "0.3m"
)

plugin.sbt

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.1")

// web plugins

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0")

Play 2.2 configuration file

build.sbt

name := """appGestion"""

version := "0.7.3-SNAPSHOT"

scalaVersion := "2.10.1"

resolvers += "jBCrypt Repository" at "http://repo1.maven.org/maven2/org/"

libraryDependencies ++= Seq(
    javaJdbc, javaCore,
    javaEbean,
    cache,
    "mysql" % "mysql-connector-java" % "5.1.+",
    "org.mindrot" % "jbcrypt" % "0.3m",
    "play2-crud" % "play2-crud_2.10" % "0.7.3-SNAPSHOT"
)

play.Project.playJavaSettings

resolvers += "release repository" at  "http://hakandilek.github.com/maven-repo/releases/"

resolvers += "snapshot repository" at "http://hakandilek.github.com/maven-repo/snapshots/"

plugin.sbt

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2")

// web plugins

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0")

This are the two main file I had to change. I don't exactly remembered the other changes and I never knew if this changes were relevant.

Issues

Becausse of the downgrade, here is some of the issue I had to face:
removing twirl import. Not that important since I used this import to create a less-effective implementation of crud2-play.
Using the deprecated class SimpleResult. We use this class in the actions for example (which can't be used in the CRUDController, another issue about it later).
Using the deprecated play.mvc.Content class.

Hope it will help you upgrade to the version 2.3. This will make this plugin even better !

from play2-crud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.