Skip to content

Instantly share code, notes, and snippets.

@gsson
Created December 18, 2015 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsson/a0e343bb0c4dc2c65c3e to your computer and use it in GitHub Desktop.
Save gsson/a0e343bb0c4dc2c65c3e to your computer and use it in GitHub Desktop.
blah-app/build.gradle
plugins {
id 'play'
id 'jvm-component'
id 'junit-test-suite'
id 'scala'
}
model {
components {
play {
platform play: '2.4.6', scala: '2.11', java: '1.8'
injectedRoutesGenerator = true
binaries.all {
tasks.withType(PlatformScalaCompile) {
scalaCompileOptions.additionalParameters = [
"-encoding", "UTF-8",
"-unchecked",
"-deprecation",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-Xfatal-warnings",
"-Xlint:_,-package-object-classes",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen"
]
}
}
}
test2(JUnitTestSuiteSpec) {
jUnitVersion '4.12'
sources {
scala {
source {
srcDir 'test2'
}
}
}
}
}
}
dependencies {
play project(':blah-domain')
playTest project(':blah-test')
play "org.webjars:webjars-play_2.11:2.4.0-1"
play "org.webjars:bootstrap:3.1.1-2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment