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 } } } // 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]] } }