mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 20:09:59 +00:00
99 lines
3.0 KiB
Groovy
99 lines
3.0 KiB
Groovy
apply plugin: "org.gradle.playframework"
|
|
|
|
// 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 {
|
|
play
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':datahub-web-react')
|
|
|
|
constraints {
|
|
play(externalDependency.springCore)
|
|
play(externalDependency.springBeans)
|
|
play(externalDependency.springContext)
|
|
play(externalDependency.jacksonDataBind)
|
|
play('com.nimbusds:oauth2-oidc-sdk:8.36.2')
|
|
play('com.nimbusds:nimbus-jose-jwt:8.18')
|
|
play('com.typesafe.akka:akka-actor_2.12:2.6.20')
|
|
play(externalDependency.jsonSmart)
|
|
play('io.netty:netty-all:4.1.86.Final')
|
|
implementation(externalDependency.commonsText) {
|
|
because("previous versions are vulnerable to CVE-2022-42889")
|
|
}
|
|
}
|
|
|
|
compile project(":metadata-service:restli-client")
|
|
compile project(":metadata-service:auth-config")
|
|
|
|
implementation externalDependency.jettyJaas
|
|
implementation externalDependency.graphqlJava
|
|
implementation externalDependency.antlr4Runtime
|
|
implementation externalDependency.antlr4
|
|
implementation externalDependency.akkaHttp
|
|
|
|
implementation externalDependency.jerseyCore
|
|
implementation externalDependency.jerseyGuava
|
|
|
|
implementation(externalDependency.pac4j) {
|
|
exclude group: "net.minidev", module: "json-smart"
|
|
exclude group: "com.nimbusds", module: "nimbus-jose-jwt"
|
|
}
|
|
|
|
implementation 'com.nimbusds:nimbus-jose-jwt:8.18'
|
|
implementation externalDependency.jsonSmart
|
|
implementation externalDependency.playPac4j
|
|
implementation externalDependency.shiroCore
|
|
|
|
implementation externalDependency.playCache
|
|
implementation externalDependency.playWs
|
|
implementation externalDependency.playServer
|
|
implementation externalDependency.playAkkaHttpServer
|
|
implementation externalDependency.playFilters
|
|
implementation externalDependency.kafkaClients
|
|
implementation externalDependency.awsMskIamAuth
|
|
|
|
testImplementation 'org.seleniumhq.selenium:htmlunit-driver:2.67.0'
|
|
testImplementation externalDependency.mockito
|
|
testImplementation externalDependency.playTest
|
|
testImplementation 'org.awaitility:awaitility:4.2.0'
|
|
testImplementation 'no.nav.security:mock-oauth2-server:0.3.1'
|
|
testImplementation 'org.junit-pioneer:junit-pioneer:1.9.1'
|
|
testImplementation externalDependency.junitJupiterApi
|
|
testRuntime externalDependency.junitJupiterEngine
|
|
|
|
implementation externalDependency.slf4jApi
|
|
compileOnly externalDependency.lombok
|
|
runtime externalDependency.guice
|
|
runtime (externalDependency.playDocs) {
|
|
exclude group: 'com.typesafe.akka', module: 'akka-http-core_2.12'
|
|
}
|
|
runtime externalDependency.playGuice
|
|
implementation externalDependency.log4j2Api
|
|
|
|
implementation externalDependency.logbackClassic
|
|
|
|
annotationProcessor externalDependency.lombok
|
|
}
|
|
|
|
play {
|
|
platform {
|
|
playVersion = '2.8.18'
|
|
scalaVersion = '2.12'
|
|
javaVersion = JavaVersion.VERSION_11
|
|
}
|
|
|
|
injectedRoutesGenerator = true
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|