2017-03-21 11:58:19 -07:00
|
|
|
apply from: '../gradle/scripts/play.gradle'
|
2015-11-19 14:39:21 -08:00
|
|
|
|
2017-03-21 11:37:38 -07:00
|
|
|
// Change this to listen on a different port
|
|
|
|
project.ext.httpPort = 9000
|
2017-03-21 11:58:19 -07:00
|
|
|
project.ext.playBinaryBaseName = "wherehows-frontend"
|
2015-11-19 14:39:21 -08:00
|
|
|
|
2017-04-04 21:35:14 -07:00
|
|
|
configurations {
|
|
|
|
assets
|
|
|
|
}
|
|
|
|
|
2015-11-19 14:39:21 -08:00
|
|
|
dependencies{
|
2017-04-04 21:35:14 -07:00
|
|
|
assets project(path: ':wherehows-web', configuration: 'assets')
|
2017-03-23 15:52:23 -07:00
|
|
|
play project(':restli-client')
|
|
|
|
|
2017-03-21 11:37:38 -07:00
|
|
|
play externalDependency.play_java_ws
|
|
|
|
play externalDependency.play_java_jdbc
|
|
|
|
play externalDependency.play_filter
|
|
|
|
play externalDependency.play_cache
|
|
|
|
play externalDependency.spring_jdbc
|
|
|
|
play externalDependency.mysql
|
2015-11-19 14:39:21 -08:00
|
|
|
|
2017-03-21 11:37:38 -07:00
|
|
|
playTest 'org.easytesting:fest-assert-core:2.0M10'
|
|
|
|
playTest externalDependency.mockito
|
2015-11-19 14:39:21 -08:00
|
|
|
}
|
|
|
|
|
2017-03-15 16:29:30 -07:00
|
|
|
configurations {
|
|
|
|
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
|
|
|
|
all*.exclude group: 'log4j', module: 'log4j'
|
|
|
|
}
|
2017-04-04 21:35:14 -07:00
|
|
|
|
|
|
|
model {
|
|
|
|
components {
|
|
|
|
play {
|
|
|
|
binaries.all { binary ->
|
|
|
|
binary.assets.addAssetDir unzipAssets.destinationDir
|
2017-04-05 10:23:20 -07:00
|
|
|
binary.assets.builtBy unzipAssets
|
2017-04-04 21:35:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-05 10:23:20 -07:00
|
|
|
task unzipAssets(type: Copy, dependsOn: configurations.assets) {
|
2017-04-04 21:35:14 -07:00
|
|
|
into "${buildDir}/assets"
|
|
|
|
from {
|
|
|
|
configurations.assets.collect{ zipTree(it) }
|
|
|
|
}
|
|
|
|
}
|