2019-08-31 20:51:14 -07:00
|
|
|
apply plugin: 'play'
|
|
|
|
|
|
|
|
// Change this to listen on a different port
|
|
|
|
project.ext.httpPort = 9001
|
|
|
|
project.ext.playBinaryBaseName = "datahub-frontend"
|
|
|
|
|
|
|
|
tasks.withType(PlayRun) {
|
|
|
|
httpPort = project.ext.httpPort
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
assets
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-01 12:16:47 -07:00
|
|
|
assets project(path: ':datahub-web-react', configuration: 'assets')
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
play project(":datahub-dao")
|
2021-01-22 15:44:00 -08:00
|
|
|
play project(":datahub-graphql-core")
|
|
|
|
|
|
|
|
play externalDependency.graphqlJava
|
|
|
|
play externalDependency.antlr4Runtime
|
|
|
|
play externalDependency.antlr4
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
play externalDependency.jerseyCore
|
|
|
|
play externalDependency.jerseyGuava
|
|
|
|
|
2021-03-11 13:38:35 -08:00
|
|
|
play externalDependency.pac4j
|
|
|
|
play externalDependency.playPac4j
|
|
|
|
play externalDependency.shiroCore
|
|
|
|
play externalDependency.playCache
|
|
|
|
|
2019-08-31 20:51:14 -07:00
|
|
|
playTest externalDependency.mockito
|
|
|
|
playTest externalDependency.playTest
|
|
|
|
|
|
|
|
playRun externalDependency.guice
|
|
|
|
playRun externalDependency.playDocs
|
|
|
|
playRun externalDependency.playGuice
|
|
|
|
}
|
|
|
|
|
|
|
|
model {
|
|
|
|
components {
|
|
|
|
play {
|
|
|
|
platform play: '2.6.18', scala: '2.11', java: '1.8'
|
|
|
|
injectedRoutesGenerator = true
|
|
|
|
|
|
|
|
binaries.all {
|
|
|
|
tasks.withType(PlatformScalaCompile) {
|
|
|
|
scalaCompileOptions.forkOptions.jvmArgs = ['-Xms1G', '-Xmx1G', '-Xss2M']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
binaries.all { binary ->
|
|
|
|
binary.assets.addAssetDir moveAssets.destinationDir
|
|
|
|
binary.assets.builtBy moveAssets
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
distributions {
|
|
|
|
playBinary {
|
|
|
|
baseName = project.ext.playBinaryBaseName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task unzipAssets(type: Copy, dependsOn: configurations.assets) {
|
|
|
|
into "${buildDir}/assets"
|
|
|
|
from {
|
|
|
|
configurations.assets.collect { zipTree(it) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// move assets/assets into assets
|
|
|
|
task moveAssets(type: Copy, dependsOn: unzipAssets) {
|
|
|
|
into "${buildDir}/assets"
|
|
|
|
from ("${buildDir}/assets/assets")
|
2020-07-22 19:43:30 -07:00
|
|
|
}
|