datahub/wherehows-api/build.gradle

48 lines
1.1 KiB
Groovy
Raw Normal View History

apply from: '../gradle/scripts/play.gradle'
2015-11-19 14:39:21 -08:00
// Change this to listen on a different port
project.ext.httpPort = 9000
project.ext.playBinaryBaseName = "wherehows-frontend"
2015-11-19 14:39:21 -08:00
configurations {
assets
}
2015-11-19 14:39:21 -08:00
dependencies{
assets project(path: ':wherehows-web', configuration: 'assets')
play project(':restli-client')
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
playTest 'org.easytesting:fest-assert-core:2.0M10'
playTest externalDependency.mockito
2015-11-19 14:39:21 -08:00
}
configurations {
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
all*.exclude group: 'log4j', module: 'log4j'
}
model {
components {
play {
binaries.all { binary ->
binary.assets.addAssetDir unzipAssets.destinationDir
binary.assets.builtBy unzipAssets
}
}
}
}
task unzipAssets(type: Copy, dependsOn: configurations.assets) {
into "${buildDir}/assets"
from {
configurations.assets.collect{ zipTree(it) }
}
}