2023-12-15 13:28:33 -06:00
|
|
|
plugins {
|
|
|
|
id 'org.hidetake.swagger.generator'
|
2024-01-22 11:46:04 -06:00
|
|
|
id 'java-library'
|
2023-12-15 13:28:33 -06:00
|
|
|
}
|
2023-07-19 20:09:14 -05:00
|
|
|
|
2024-12-03 06:57:43 +05:30
|
|
|
apply from: '../../gradle/coverage/java-coverage.gradle'
|
|
|
|
|
2023-07-19 20:09:14 -05:00
|
|
|
configurations {
|
|
|
|
enhance
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-05-08 20:39:31 -05:00
|
|
|
implementation 'com.github.java-json-tools:json-patch:1.13' // TODO: Replace with jakarta.json
|
2023-09-01 09:06:01 -05:00
|
|
|
implementation project(':entity-registry')
|
|
|
|
implementation project(':metadata-utils')
|
2023-10-18 13:45:46 -05:00
|
|
|
implementation project(':metadata-events:mxe-avro')
|
2023-09-01 09:06:01 -05:00
|
|
|
implementation project(':metadata-events:mxe-registration')
|
2023-10-18 13:45:46 -05:00
|
|
|
implementation project(':metadata-events:mxe-utils-avro')
|
2025-01-31 08:33:24 -06:00
|
|
|
api project(':metadata-service:openapi-servlet:models')
|
2024-01-22 11:46:04 -06:00
|
|
|
api project(path: ':metadata-models', configuration: 'dataTemplate')
|
|
|
|
api project(':metadata-models')
|
|
|
|
|
2024-03-23 06:15:36 -05:00
|
|
|
// Consider using the restli-client-api instead of dependency on project(':metadata-service:restli-client')
|
|
|
|
// to avoid circular dependencies with the restli/pegasus code gen
|
|
|
|
implementation project(':metadata-service:restli-client-api')
|
|
|
|
implementation project(':metadata-auth:auth-api')
|
|
|
|
implementation project(':metadata-operation-context')
|
2023-09-01 09:06:01 -05:00
|
|
|
implementation project(':metadata-service:configuration')
|
2023-07-19 20:09:14 -05:00
|
|
|
|
|
|
|
implementation externalDependency.slf4jApi
|
|
|
|
implementation externalDependency.swaggerAnnotations
|
2023-09-01 09:06:01 -05:00
|
|
|
runtimeOnly externalDependency.logbackClassic
|
2023-07-19 20:09:14 -05:00
|
|
|
compileOnly externalDependency.lombok
|
|
|
|
implementation externalDependency.commonsCollections
|
2023-09-01 09:06:01 -05:00
|
|
|
implementation externalDependency.javatuples
|
|
|
|
implementation externalDependency.javaxValidation
|
|
|
|
implementation externalDependency.opentelemetryAnnotations
|
2023-07-19 20:09:14 -05:00
|
|
|
|
|
|
|
annotationProcessor externalDependency.lombok
|
|
|
|
|
2023-09-01 09:06:01 -05:00
|
|
|
testImplementation externalDependency.testng
|
|
|
|
testImplementation externalDependency.junit
|
|
|
|
testImplementation externalDependency.mockito
|
|
|
|
testImplementation externalDependency.mockitoInline
|
2023-07-19 20:09:14 -05:00
|
|
|
testCompileOnly externalDependency.lombok
|
2023-09-01 09:06:01 -05:00
|
|
|
testImplementation project(':test-models')
|
|
|
|
testImplementation project(path: ':test-models', configuration: 'testDataTemplate')
|
2023-07-19 20:09:14 -05:00
|
|
|
testImplementation project(':datahub-graphql-core')
|
|
|
|
// logback >=1.3 required due to `testcontainers` only
|
|
|
|
testImplementation 'ch.qos.logback:logback-classic:1.4.7'
|
|
|
|
|
|
|
|
testAnnotationProcessor externalDependency.lombok
|
|
|
|
|
|
|
|
constraints {
|
|
|
|
implementation(externalDependency.log4jCore) {
|
|
|
|
because("previous versions are vulnerable to CVE-2021-45105")
|
|
|
|
}
|
|
|
|
implementation(externalDependency.log4jApi) {
|
|
|
|
because("previous versions are vulnerable to CVE-2021-45105")
|
|
|
|
}
|
|
|
|
implementation(externalDependency.commonsText) {
|
|
|
|
because("previous versions are vulnerable to CVE-2022-42889")
|
|
|
|
}
|
|
|
|
implementation(externalDependency.snakeYaml) {
|
|
|
|
because("previous versions are vulnerable to CVE-2022-25857")
|
|
|
|
}
|
|
|
|
implementation(externalDependency.woodstoxCore) {
|
|
|
|
because("previous versions are vulnerable to CVE-2022-40151-2")
|
|
|
|
}
|
|
|
|
implementation(externalDependency.jettison) {
|
|
|
|
because("previous versions are vulnerable")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
testLogging.showStandardStreams = true
|
|
|
|
testLogging.exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(Test) {
|
|
|
|
enableAssertions = false
|
|
|
|
}
|