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"
|
|
|
|
|
2023-09-01 09:06:01 -05:00
|
|
|
runPlay {
|
2019-08-31 20:51:14 -07:00
|
|
|
httpPort = project.ext.httpPort
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
2022-12-08 20:27:51 -06:00
|
|
|
play
|
2019-08-31 20:51:14 -07:00
|
|
|
}
|
|
|
|
|
2024-10-28 09:05:16 -05:00
|
|
|
ext {
|
|
|
|
nimbusJoseJwtVersion = "9.41.2"
|
|
|
|
oauth2OidcSdkVersion = "11.20.1"
|
|
|
|
}
|
|
|
|
|
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 {
|
2024-10-28 09:05:16 -05:00
|
|
|
play(externalDependency.pac4j)
|
|
|
|
play(externalDependency.playPac4j)
|
|
|
|
play("com.nimbusds:oauth2-oidc-sdk:$oauth2OidcSdkVersion")
|
|
|
|
play("com.nimbusds:nimbus-jose-jwt:$nimbusJoseJwtVersion")
|
|
|
|
implementation(externalDependency.pac4j)
|
|
|
|
implementation(externalDependency.playPac4j)
|
|
|
|
implementation("com.nimbusds:nimbus-jose-jwt:$nimbusJoseJwtVersion")
|
|
|
|
testImplementation("com.nimbusds:oauth2-oidc-sdk:$oauth2OidcSdkVersion")
|
|
|
|
|
2022-12-01 16:43:15 -06:00
|
|
|
play(externalDependency.jacksonDataBind)
|
2024-10-28 09:05:16 -05:00
|
|
|
play("com.typesafe.akka:akka-actor_$playScalaVersion:2.6.20")
|
2023-04-11 14:49:53 -05:00
|
|
|
play(externalDependency.jsonSmart)
|
2025-02-13 14:49:56 -06:00
|
|
|
play('io.netty:netty-all:4.1.118.Final')
|
2024-10-28 09:05:16 -05:00
|
|
|
|
2022-12-09 14:11:12 -06:00
|
|
|
implementation(externalDependency.commonsText) {
|
|
|
|
because("previous versions are vulnerable to CVE-2022-42889")
|
|
|
|
}
|
2023-08-17 00:26:28 -05:00
|
|
|
implementation(externalDependency.snappy) {
|
|
|
|
because("previous versions are vulnerable to CVE-2023-34453 through CVE-2023-34455")
|
|
|
|
}
|
2025-05-30 11:00:41 -05:00
|
|
|
implementation('commons-beanutils:commons-beanutils:1.11.0') {
|
|
|
|
because("CVE-2025-48734")
|
|
|
|
}
|
2021-06-24 23:00:55 -07:00
|
|
|
}
|
2022-12-08 20:27:51 -06:00
|
|
|
|
2023-09-01 09:06:01 -05:00
|
|
|
implementation project(":metadata-service:restli-client")
|
|
|
|
implementation project(":metadata-service:auth-config")
|
2023-09-21 22:00:14 -05:00
|
|
|
implementation project(":metadata-service:configuration")
|
2022-05-10 18:15:53 -05:00
|
|
|
|
2023-09-21 22:00:14 -05:00
|
|
|
implementation externalDependency.springCore
|
|
|
|
implementation externalDependency.springBeans
|
|
|
|
implementation externalDependency.springContext
|
|
|
|
implementation externalDependency.springBootAutoconfigure
|
2025-01-23 10:45:40 -06:00
|
|
|
implementation externalDependency.jettySecurity
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.graphqlJava
|
|
|
|
implementation externalDependency.antlr4Runtime
|
|
|
|
implementation externalDependency.antlr4
|
2022-06-06 19:25:24 -05:00
|
|
|
implementation externalDependency.akkaHttp
|
2024-11-27 17:05:37 -06:00
|
|
|
implementation externalDependency.akkaActor
|
|
|
|
implementation externalDependency.akkaStream
|
|
|
|
implementation externalDependency.akkaActorTyped
|
|
|
|
implementation externalDependency.akkaSlf4j
|
|
|
|
implementation externalDependency.akkaJackson
|
|
|
|
implementation externalDependency.akkaParsing
|
|
|
|
implementation externalDependency.akkaProtobuf
|
2022-05-10 18:15:53 -05:00
|
|
|
|
|
|
|
implementation externalDependency.jerseyCore
|
|
|
|
implementation externalDependency.jerseyGuava
|
|
|
|
|
2024-10-28 09:05:16 -05:00
|
|
|
implementation externalDependency.pac4j
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.playPac4j
|
2024-10-28 09:05:16 -05:00
|
|
|
implementation "com.nimbusds:nimbus-jose-jwt:$nimbusJoseJwtVersion"
|
|
|
|
implementation externalDependency.jsonSmart
|
|
|
|
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.shiroCore
|
2023-02-20 14:39:27 -06:00
|
|
|
|
2022-05-10 18:15:53 -05:00
|
|
|
implementation externalDependency.playCache
|
2023-11-29 08:02:57 +00:00
|
|
|
implementation externalDependency.playCaffeineCache
|
2022-05-10 18:15:53 -05:00
|
|
|
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
|
2025-05-01 20:22:47 -05:00
|
|
|
implementation externalDependency.azureIdentityExtensions
|
|
|
|
implementation externalDependency.azureIdentity
|
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'
|
2024-10-28 09:05:16 -05:00
|
|
|
testImplementation 'no.nav.security:mock-oauth2-server:2.1.9'
|
2022-12-08 20:27:51 -06:00
|
|
|
testImplementation 'org.junit-pioneer:junit-pioneer:1.9.1'
|
|
|
|
testImplementation externalDependency.junitJupiterApi
|
2023-09-01 09:06:01 -05:00
|
|
|
testRuntimeOnly 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
|
2024-02-28 16:57:26 -06:00
|
|
|
runtimeOnly externalDependency.guicePlay
|
2025-03-14 17:09:26 -05:00
|
|
|
runtimeOnly externalDependency.opentelemetryExporter
|
2025-04-04 11:51:10 -03:00
|
|
|
runtimeOnly externalDependency.openTelemetryExporterLogging
|
|
|
|
runtimeOnly externalDependency.openTelemetryExporterCommon
|
2023-09-01 09:06:01 -05:00
|
|
|
runtimeOnly (externalDependency.playDocs) {
|
2024-10-28 09:05:16 -05:00
|
|
|
exclude group: 'com.typesafe.akka', module: "akka-http-core_$playScalaVersion"
|
2022-06-06 19:25:24 -05:00
|
|
|
}
|
2023-09-01 09:06:01 -05:00
|
|
|
runtimeOnly 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 {
|
2024-10-28 09:05:16 -05:00
|
|
|
playVersion = "2.8.22" // see also top level build.gradle
|
|
|
|
scalaVersion = "2.13"
|
|
|
|
javaVersion = JavaVersion.VERSION_17
|
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()
|
2023-12-15 13:28:33 -06:00
|
|
|
|
2024-01-24 17:36:30 -08:00
|
|
|
testLogging.showStandardStreams = true
|
|
|
|
testLogging.exceptionFormat = 'full'
|
|
|
|
|
2023-12-15 13:28:33 -06:00
|
|
|
def playJava17CompatibleJvmArgs = [
|
|
|
|
"--add-opens=java.base/java.lang=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.lang.invoke=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.io=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.net=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.nio=ALL-UNNAMED",
|
|
|
|
"--add-opens=java.base/java.util=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.util.concurrent=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/sun.nio.cs=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/sun.security.action=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.base/sun.util.calendar=ALL-UNNAMED",
|
|
|
|
//"--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED",
|
|
|
|
]
|
|
|
|
jvmArgs = playJava17CompatibleJvmArgs
|
2022-12-08 20:27:51 -06:00
|
|
|
}
|