2017-03-21 11:58:19 -07:00
|
|
|
apply plugin: 'play'
|
|
|
|
|
|
|
|
tasks.withType(PlayRun) {
|
|
|
|
httpPort = project.ext.httpPort
|
|
|
|
}
|
|
|
|
|
|
|
|
model {
|
|
|
|
components {
|
|
|
|
play {
|
|
|
|
platform play: '2.4.8', scala: '2.10'
|
|
|
|
|
|
|
|
binaries.all {
|
|
|
|
tasks.withType(PlatformScalaCompile) {
|
|
|
|
scalaCompileOptions.forkOptions.jvmArgs = ['-Xms1G', '-Xmx1G', '-Xss2M']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
distributions {
|
|
|
|
playBinary {
|
|
|
|
baseName = project.ext.playBinaryBaseName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-03-23 15:52:23 -07:00
|
|
|
|
|
|
|
// used for Intellij to recognized play project
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
sourceDirs += file("app")
|
|
|
|
testSourceDirs += file("test")
|
|
|
|
scopes.COMPILE = [plus: [configurations.play], minus: []]
|
|
|
|
scopes.RUNTIME = [plus: [configurations.playRun], minus: [configurations.play]]
|
|
|
|
scopes.TEST = [plus: [configurations.playTest], minus: [configurations.playRun]]
|
|
|
|
}
|
|
|
|
}
|