|
Play Framework/Scala example source code file (build.sbt)
The build.sbt Play Framework example source code// // Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> // lazy val root = (project in file(".")).enablePlugins(RoutesCompiler) scalaVersion := "2.11.1" routesFiles in Compile := Seq(baseDirectory.value / "a.routes", baseDirectory.value / "b.routes") // because the scripted newer command is broken: // https://github.com/sbt/sbt/pull/1419 InputKey[Unit]("newer") := { val args = Def.spaceDelimited("<tocheck> <target>").parsed val base: File = baseDirectory.value val toCheck = args(0) val targetFile = args(1) if ((base / toCheck).lastModified() <= (base / targetFile).lastModified()) { throw new RuntimeException(s"$toCheck is not newer than $targetFile") } } Other Play Framework source code examplesHere is a short list of links related to this Play Framework build.sbt source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.