Skip to content

Instantly share code, notes, and snippets.

Created May 14, 2014 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9672fb9cfe0dbe41992b to your computer and use it in GitHub Desktop.
Save anonymous/9672fb9cfe0dbe41992b to your computer and use it in GitHub Desktop.
object ApplicationBuild extends Build {
val appName = "my-webapp"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
cache,
filters,
"org.springframework" % "spring-context" % "4.0.0.RELEASE",
"org.springframework" % "spring-expression" % "4.0.0.RELEASE",
"org.springframework" % "spring-aop" % "4.0.0.RELEASE",
"org.springframework" % "spring-beans" % "4.0.0.RELEASE",
"org.springframework" % "spring-instrument" % "4.0.0.RELEASE",
"org.springframework" % "spring-orm" % "4.0.0.RELEASE",
"org.springframework" % "spring-aspects" % "4.0.0.RELEASE",
"org.springframework" % "spring-jdbc" % "4.0.0.RELEASE",
"org.springframework" % "spring-test" % "4.0.0.RELEASE",
"org.springframework" % "spring-tx" % "4.0.0.RELEASE",
"org.springframework.data" % "spring-data-neo4j" % "3.0.0.RELEASE" excludeAll(
ExclusionRule(organization = "com.sun.jdmk"),
ExclusionRule(organization = "com.sun.jmx"),
ExclusionRule(organization = "javax.jms")
),
"org.neo4j" % "neo4j" % "2.0.1" excludeAll ExclusionRule(organization = "org.neo4j", name = "neo4j-kernel"),
"org.neo4j" % "neo4j-kernel" % "2.0.1" % "test" classifier "tests" classifier "",
"org.ow2.asm" % "asm-all" % "4.0",
"org.springframework.data" % "spring-data-neo4j-rest" % "3.0.0.RELEASE" excludeAll ExclusionRule(organization = "org.neo4j"),
"org.neo4j" % "neo4j-rest-graphdb" % "2.0.0",
"org.scalaz" %% "scalaz-core" % "7.0.5" withSources(),
"org.specs2" %% "specs2" % "2.3.7" % "test" withSources(),
"org.specs2" %% "spring" % "2.1.0-SNAPSHOT" % "test" withSources(),
"org.mockito" % "mockito-all" % "1.9.0" % "test",
"org.apache.commons" % "commons-email" % "1.2",
"org.mindrot" % "jbcrypt" % "0.3m",
"org.pegdown" % "pegdown" % "1.2.0" % "test",
"org.parboiled" % "parboiled-core" % "1.1.5" % "test",
"org.parboiled" % "parboiled-java" % "1.1.5" % "test",
"javax.validation" % "validation-api" % "1.1.0.Final",
"com.github.mumoshu" %% "play2-memcached" % "0.3.0.2",
"javax.persistence" % "persistence-api" % "1.0.2",
"com.sun.jersey" % "jersey-core" % "1.9",
"com.typesafe.play" %% "play" % "2.2.2",
"com.etaty.rediscala" %% "rediscala" % "1.3"
)
//-javaagent:-javaagent:/Developpements/play-2.2.2/repository/cache/org.springframework/spring-instrument/jars/spring-instrument-4.0.0.RELEASE.jar
val webApp = play.Project(appName, appVersion, appDependencies)
.settings(aspectjSettings: _*)
.settings(
parallelExecution in Test := false,
//sbt.Keys.fork in Test := false,
javaOptions in (Test,run) ++= Seq("-Xms512M", "-Xmx2048M", "-XX:MaxPermSize=2048M", "-XX:+CMSClassUnloadingEnabled"),
verbose in Aspectj := false,
showWeaveInfo in Aspectj := false,
inputs in Aspectj <+= compiledClasses,
binaries in Aspectj <++= update map { report =>
report.matching(
moduleFilter(organization = "org.springframework", name = "spring-aspects")
|| moduleFilter(organization = "org.springframework.security", name = "spring-security-aspects")
)
},
products in Compile <<= products in Aspectj,
products in Runtime <<= products in Compile,
resolvers := Seq("typesafe" at "http://repo.typesafe.com/typesafe/releases/"),
resolvers += "TAMU Release Repository" at "https://maven.library.tamu.edu/content/repositories/releases/",
resolvers += "Spring Release Repository" at "https://repo.springsource.org/libs-release",
resolvers += "Neo4j Cypher DSL Repository" at "http://m2.neo4j.org/content/repositories/releases",
resolvers += "Neo4j Releases" at "http://m2.neo4j.org/content/repositories/releases",
resolvers += "Neo4j Snapshots" at "http://m2.neo4j.org/content/repositories/snapshots",
resolvers += "snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
resolvers += "releases" at "https://oss.sonatype.org/content/repositories/releases",
resolvers += "Spy Repository" at "http://files.couchbase.com/maven2",
resolvers += "spring-milestones" at "http://repo.spring.io/milestone",
resolvers += "spring-snapshots" at "http://repo.spring.io/snapshot",
resolvers += "opencastproject" at "http://repository.opencastproject.org/nexus/content/repositories/public/",
resolvers += "rediscala" at "https://raw.github.com/etaty/rediscala-mvn/master/releases/"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment