Skip to content

Instantly share code, notes, and snippets.

@gsson
Created Dec 18, 2015
Embed
What would you like to do?
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