IntelliJ: building Play Scala project

It appears some of the current best practices for building a Play project is to configure your build in project/Build.scala (previously it was done via build.sbt; but that is often not powerful enough; make sure to delete build.sbt from you project so that it does not interfere):

import sbt._
import play.Project._

object ApplicationBuild extends Build {

  val appName = "myApp"
  val appVersion = "1.0-SNAPSHOT"

  val appDependencies = Seq(
    "org.webjars" % "angularjs" % "1.2.3",
    "org.webjars" % "requirejs" % "2.1.8",
    "org.webjars" % "webjars-play" % "2.1.0-1")

  val main = play.Project(appName, appVersion, appDependencies)
}

Also even though I installed sbt plug in, it was not being picked up by the project settings; when looking at your ‘Project Settings | Scala | Compiler’ it will warn if you there are problems; and my case there was a quick fix available; that downloaded/enable sbt.

To configure IntelliJ on OSX for Play see this post.

To set up WebJars see

 

keywords:

org.webjars#webjars-play_2.10;2.1.0-1: not found
java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scala-stm:scala-stm
intellij “build.scala”
play build.sbt or build.scala
scala play build.scala

 

 

About Neil Rubens

see http://ActiveIntelligence.org

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*