Skip to content

Commit

Permalink
Merge pull request skinny-framework#250 from seratch/scalate-plugin
Browse files Browse the repository at this point in the history
Switch xsbt-scalate-generator to sbt-scalate-precompiler
  • Loading branch information
seratch committed Mar 25, 2015
2 parents 061a96c + df3174a commit 1acfef4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import javax.servlet.http._
import org.scalatest._
import org.scalatest.mock.MockitoSugar
import org.mockito.Mockito._
import skinny.{ DBSettings, DBSettingsInitializer }
import skinny.DBSettings

class TxPerRequestFilterSpec extends FunSpec with Matchers with MockitoSugar with DBSettings with DBSettingsInitializer {
class TxPerRequestFilterSpec extends FunSpec with Matchers with MockitoSugar with DBSettings {

val filter = new TxPerRequestFilter {
}
Expand Down
8 changes: 4 additions & 4 deletions orm/src/test/scala/test006/Spec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ class Spec extends fixture.FunSpec with Matchers
_afterDeleteBy += 1
})

@deprecated("will be removed someday")
@deprecated("will be removed someday", "1.3.12")
override protected def beforeCreate(namedValues: Seq[(SQLSyntax, Any)])(implicit s: DBSession): Unit = {
_beforeCreateDeprecated += 1
}
@deprecated("will be removed someday")
@deprecated("will be removed someday", "1.3.12")
override protected def afterCreate(namedValues: Seq[(SQLSyntax, Any)], generatedId: Option[Long])(implicit s: DBSession): Unit = {
_afterCreateDeprecated += 1
}

@deprecated("will be removed someday")
@deprecated("will be removed someday", "1.3.12")
override protected def beforeDeleteBy(where: SQLSyntax)(implicit s: DBSession): Unit = {
_beforeDeleteByDeprecated += 1
}
@deprecated("will be removed someday")
@deprecated("will be removed someday", "1.3.12")
override protected def afterDeleteBy(where: SQLSyntax, deletedCount: Int)(implicit s: DBSession): Int = {
_afterDeleteByDeprecated += 1
1
Expand Down
4 changes: 2 additions & 2 deletions project/Build.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sbt._, Keys._
import org.scalatra.sbt._, PluginKeys._
import com.mojolly.scalate.ScalatePlugin._, ScalateKeys._
import skinny.scalate.ScalatePlugin._, ScalateKeys._
import scala.language.postfixOps

object SkinnyFrameworkBuild extends Build {
Expand All @@ -19,7 +19,7 @@ object SkinnyFrameworkBuild extends Build {
version := currentVersion,
resolvers ++= Seq(
"sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
//, "sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
//,"sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
),
publishTo <<= version { (v: String) => _publishTo(v) },
publishMavenStyle := true,
Expand Down
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
resolvers += Classpaths.sbtPluginReleases

// TODO: https://github.com/jrudolph/sbt-dependency-graph/issues/67
//addMavenResolverPlugin

addSbtPlugin("com.mojolly.scalate" % "xsbt-scalate-generator" % "0.5.0")
addSbtPlugin("org.skinny-framework" % "sbt-scalate-precompiler" % "1.7.1.0")

addSbtPlugin("org.scalatra.sbt" % "scalatra-sbt" % "0.3.5" excludeAll(
ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "org.eclipse.jetty"),
Expand Down
4 changes: 3 additions & 1 deletion travis_after.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
if [[ "$TEST_TYPE" == "framework" ]]; then
sbt coveralls
if [[ "$TRAVIS_SCALA_VERSION" == 2.11* ]]; then
sbt coveralls
fi
fi

2 changes: 1 addition & 1 deletion yeoman-generator-skinny/app/templates/project/Build.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sbt._, Keys._
import org.scalatra.sbt._, PluginKeys._
import com.mojolly.scalate.ScalatePlugin._, ScalateKeys._
import skinny.scalate.ScalatePlugin._, ScalateKeys._
import com.earldouglas.xsbtwebplugin.WebPlugin._
import com.earldouglas.xsbtwebplugin.PluginKeys._
import org.sbtidea.SbtIdeaPlugin._
Expand Down
4 changes: 3 additions & 1 deletion yeoman-generator-skinny/app/templates/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.9.1" excludeAll(
ExclusionRule(organization = "org.eclipse.jetty"),
ExclusionRule(organization = "org.apache.tomcat.embed")
))

// Scalate template files precompilation
addSbtPlugin("com.mojolly.scalate" % "xsbt-scalate-generator" % "0.5.0")
addSbtPlugin("org.skinny-framework" % "sbt-scalate-precompiler" % "1.7.1.0")

// --------
// format Scala source code automatically
Expand All @@ -49,4 +50,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.4")
// addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.1.8")

// visualize this project's dependencies
// TODO: sbt 0.13.8 support - https://github.com/jrudolph/sbt-dependency-graph/issues/67
// addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")

0 comments on commit 1acfef4

Please sign in to comment.