2023-12-15 13:28:33 -06:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
2022-12-06 23:52:41 +05:30
|
|
|
|
2024-12-03 06:57:43 +05:30
|
|
|
apply from: '../../gradle/coverage/java-coverage.gradle'
|
|
|
|
|
2022-12-06 23:52:41 +05:30
|
|
|
dependencies {
|
|
|
|
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
|
|
|
implementation project(path: ':metadata-auth:auth-api')
|
2024-05-09 14:56:03 -05:00
|
|
|
implementation project(':entity-registry')
|
|
|
|
implementation externalDependency.springContext
|
2022-12-06 23:52:41 +05:30
|
|
|
implementation externalDependency.guava
|
|
|
|
implementation externalDependency.jacksonDataBind
|
|
|
|
implementation externalDependency.jacksonDataFormatYaml
|
|
|
|
implementation externalDependency.jacksonJDK8
|
|
|
|
implementation externalDependency.jacksonDataPropertyFormat
|
2024-06-28 10:02:18 -05:00
|
|
|
implementation externalDependency.logbackClassic
|
2022-12-06 23:52:41 +05:30
|
|
|
implementation externalDependency.slf4jApi
|
|
|
|
|
|
|
|
compileOnly externalDependency.lombok
|
2024-06-28 10:02:18 -05:00
|
|
|
annotationProcessor externalDependency.lombok
|
2022-12-06 23:52:41 +05:30
|
|
|
|
2024-06-28 10:02:18 -05:00
|
|
|
testImplementation project(':test-models')
|
|
|
|
testImplementation project(path: ':test-models', configuration: 'testDataTemplate')
|
2022-12-06 23:52:41 +05:30
|
|
|
testImplementation externalDependency.mockito
|
|
|
|
testImplementation externalDependency.testng
|
2024-06-28 10:02:18 -05:00
|
|
|
testCompileOnly externalDependency.lombok
|
|
|
|
testAnnotationProcessor externalDependency.lombok
|
2022-12-06 23:52:41 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
// Build sample plugin to unit test IsolatedClassLoader
|
|
|
|
dependsOn ':metadata-service:plugin:src:test:sample-test-plugins:build'
|
|
|
|
// Set system properties for permission management
|
|
|
|
systemProperty 'datahub.gms.home', file("$projectDir").absolutePath
|
|
|
|
systemProperty 'java.security.policy', file("../war/src/main/resources/security.policy").absolutePath
|
|
|
|
systemProperty 'datahub.project.root.dir', "$rootDir" // used in security.policy
|
|
|
|
}
|
|
|
|
|
|
|
|
clean {
|
|
|
|
dependsOn ':metadata-service:plugin:src:test:sample-test-plugins:clean'
|
2023-12-15 13:28:33 -06:00
|
|
|
}
|