2022-05-10 18:15:53 -05:00
|
|
|
apply plugin: "org.gradle.playframework"
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
// 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 {
|
2022-12-08 20:27:51 -06:00
|
|
|
play
|
2019-08-31 20:51:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-12-26 10:09:08 -06:00
|
|
|
implementation project(':datahub-web-react')
|
2021-06-24 23:00:55 -07:00
|
|
|
|
|
|
|
constraints {
|
2022-12-08 20:27:51 -06:00
|
|
|
play(externalDependency.springCore)
|
|
|
|
play(externalDependency.springBeans)
|
|
|
|
play(externalDependency.springContext)
|
2022-12-01 16:43:15 -06:00
|
|
|
play(externalDependency.jacksonDataBind)
|
2022-12-08 20:27:51 -06:00
|
|
|
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')
|
2023-04-11 14:49:53 -05:00
|
|
|
play(externalDependency.jsonSmart)
|
2023-01-31 21:11:26 +01:00
|
|
|
play('io.netty:netty-all:4.1.86.Final')
|
2022-12-09 14:11:12 -06:00
|
|
|
implementation(externalDependency.commonsText) {
|
|
|
|
because("previous versions are vulnerable to CVE-2022-42889")
|
|
|
|
}
|
2021-06-24 23:00:55 -07:00
|
|
|
}
|
2022-12-08 20:27:51 -06:00
|
|
|
|
2022-05-11 13:32:26 -07:00
|
|
|
compile project(":metadata-service:restli-client")
|
2022-12-09 18:06:51 -06:00
|
|
|
compile project(":metadata-service:auth-config")
|
2022-05-10 18:15:53 -05:00
|
|
|
|
|
|
|
implementation externalDependency.jettyJaas
|
|
|
|
implementation externalDependency.graphqlJava
|
|
|
|
implementation externalDependency.antlr4Runtime
|
|
|
|
implementation externalDependency.antlr4
|
2022-06-06 19:25:24 -05:00
|
|
|
implementation externalDependency.akkaHttp
|
2022-05-10 18:15:53 -05:00
|
|
|
|
|
|
|
implementation externalDependency.jerseyCore
|
|
|
|
implementation externalDependency.jerseyGuava
|
|
|
|
|
2022-06-03 17:32:54 -05:00
|
|
|
implementation(externalDependency.pac4j) {
|
|
|
|
exclude group: "net.minidev", module: "json-smart"
|
2022-06-14 18:36:13 +01:00
|
|
|
exclude group: "com.nimbusds", module: "nimbus-jose-jwt"
|
2022-06-03 17:32:54 -05:00
|
|
|
}
|
2022-12-08 20:27:51 -06:00
|
|
|
|
|
|
|
implementation 'com.nimbusds:nimbus-jose-jwt:8.18'
|
2022-06-03 17:32:54 -05:00
|
|
|
implementation externalDependency.jsonSmart
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.playPac4j
|
|
|
|
implementation externalDependency.shiroCore
|
2023-02-20 14:39:27 -06:00
|
|
|
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.playCache
|
|
|
|
implementation externalDependency.playWs
|
2022-05-31 20:35:23 -04:00
|
|
|
implementation externalDependency.playServer
|
|
|
|
implementation externalDependency.playAkkaHttpServer
|
2022-12-08 20:27:51 -06:00
|
|
|
implementation externalDependency.playFilters
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.kafkaClients
|
2022-06-14 14:34:46 -07:00
|
|
|
implementation externalDependency.awsMskIamAuth
|
2022-05-10 18:15:53 -05:00
|
|
|
|
2023-01-11 17:31:20 -05:00
|
|
|
testImplementation 'org.seleniumhq.selenium:htmlunit-driver:2.67.0'
|
2022-05-10 18:15:53 -05:00
|
|
|
testImplementation externalDependency.mockito
|
|
|
|
testImplementation externalDependency.playTest
|
2022-12-26 10:09:08 -06:00
|
|
|
testImplementation 'org.awaitility:awaitility:4.2.0'
|
2022-12-08 20:27:51 -06:00
|
|
|
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
|
2022-05-10 18:15:53 -05:00
|
|
|
|
2022-12-04 21:57:47 -06:00
|
|
|
implementation externalDependency.slf4jApi
|
2022-05-10 18:15:53 -05:00
|
|
|
compileOnly externalDependency.lombok
|
|
|
|
runtime externalDependency.guice
|
2022-06-06 19:25:24 -05:00
|
|
|
runtime (externalDependency.playDocs) {
|
|
|
|
exclude group: 'com.typesafe.akka', module: 'akka-http-core_2.12'
|
|
|
|
}
|
2022-05-10 18:15:53 -05:00
|
|
|
runtime externalDependency.playGuice
|
2022-12-08 20:27:51 -06:00
|
|
|
implementation externalDependency.log4j2Api
|
|
|
|
|
2022-12-04 21:57:47 -06:00
|
|
|
implementation externalDependency.logbackClassic
|
2022-05-10 18:15:53 -05:00
|
|
|
|
|
|
|
annotationProcessor externalDependency.lombok
|
|
|
|
}
|
|
|
|
|
|
|
|
play {
|
|
|
|
platform {
|
2022-12-08 20:27:51 -06:00
|
|
|
playVersion = '2.8.18'
|
2022-05-10 18:15:53 -05:00
|
|
|
scalaVersion = '2.12'
|
2022-10-04 15:37:28 -07:00
|
|
|
javaVersion = JavaVersion.VERSION_11
|
2022-05-10 18:15:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
injectedRoutesGenerator = true
|
2019-08-31 20:51:14 -07:00
|
|
|
}
|
|
|
|
|
2022-12-08 20:27:51 -06:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|