2021-06-03 13:24:33 -07:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
enhance
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':entity-registry')
|
|
|
|
compile project(':metadata-utils')
|
|
|
|
compile project(':metadata-events:mxe-avro-1.7')
|
|
|
|
compile project(':metadata-events:mxe-registration')
|
|
|
|
compile project(':metadata-events:mxe-utils-avro-1.7')
|
|
|
|
compile project(path: ':metadata-models')
|
|
|
|
|
|
|
|
compile spec.product.pegasus.data
|
|
|
|
compile spec.product.pegasus.generator
|
|
|
|
|
2021-11-15 19:33:30 +01:00
|
|
|
compile externalDependency.dgraph4j exclude group: 'com.google.guava', module: 'guava'
|
2021-06-03 13:24:33 -07:00
|
|
|
compile externalDependency.lombok
|
|
|
|
compile externalDependency.elasticSearchRest
|
|
|
|
compile externalDependency.elasticSearchTransport
|
|
|
|
compile externalDependency.kafkaClients
|
|
|
|
compile externalDependency.gmaEbeanDao
|
|
|
|
compile externalDependency.gmaRestliResources
|
|
|
|
compile externalDependency.gmaElasticsearchDao
|
|
|
|
compile externalDependency.ebean
|
|
|
|
enhance externalDependency.ebeanAgent
|
2021-09-07 23:06:15 -07:00
|
|
|
compile externalDependency.opentelemetryAnnotations
|
2021-11-15 19:33:30 +01:00
|
|
|
compile externalDependency.resilience4j
|
2021-10-07 11:41:29 -07:00
|
|
|
compile externalDependency.springContext
|
2021-06-03 13:24:33 -07:00
|
|
|
|
|
|
|
annotationProcessor externalDependency.lombok
|
|
|
|
|
|
|
|
testCompile externalDependency.testng
|
|
|
|
testCompile externalDependency.h2
|
|
|
|
testCompile externalDependency.neo4jHarness
|
|
|
|
testCompile externalDependency.mockito
|
|
|
|
testCompile externalDependency.mockitoInline
|
|
|
|
testCompile externalDependency.iStackCommons
|
2021-10-13 18:53:47 -07:00
|
|
|
testCompile externalDependency.resilience4j
|
2021-06-03 13:24:33 -07:00
|
|
|
testCompile externalDependency.testContainers
|
|
|
|
testCompile externalDependency.testContainersJunit
|
|
|
|
testCompile externalDependency.testContainersElasticsearch
|
2021-11-15 19:33:30 +01:00
|
|
|
testCompile externalDependency.lombok
|
2021-06-03 13:24:33 -07:00
|
|
|
testCompile project(':test-models')
|
2021-10-26 21:23:08 -07:00
|
|
|
|
|
|
|
testAnnotationProcessor externalDependency.lombok
|
2021-12-10 20:07:55 +02:00
|
|
|
|
|
|
|
constraints {
|
2021-12-20 22:55:22 +08:00
|
|
|
implementation("org.apache.logging.log4j:log4j-core:2.17.0") {
|
|
|
|
because("previous versions are vulnerable to CVE-2021-45105")
|
2021-12-10 20:07:55 +02:00
|
|
|
}
|
2021-12-20 22:55:22 +08:00
|
|
|
implementation("org.apache.logging.log4j:log4j-api:2.17.0") {
|
|
|
|
because("previous versions are vulnerable to CVE-2021-45105")
|
2021-12-10 20:07:55 +02:00
|
|
|
}
|
|
|
|
}
|
2021-06-03 13:24:33 -07:00
|
|
|
}
|
|
|
|
|
2021-11-15 23:49:15 +01:00
|
|
|
test {
|
|
|
|
// https://docs.gradle.org/current/userguide/performance.html
|
|
|
|
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
|
|
|
}
|
|
|
|
|
2021-06-03 13:24:33 -07:00
|
|
|
tasks.withType(Test) {
|
|
|
|
enableAssertions = false
|
|
|
|
}
|
|
|
|
|
|
|
|
project.compileJava {
|
|
|
|
doLast {
|
|
|
|
ant.taskdef(name: 'ebean', classname: 'io.ebean.enhance.ant.AntEnhanceTask',
|
|
|
|
classpath: project.configurations.enhance.asPath)
|
|
|
|
ant.ebean(classSource: "${project.buildDir}/classes/java/main", packages: 'com.linkedin.metadata.entity.ebean',
|
|
|
|
transformArgs: 'debug=1')
|
|
|
|
}
|
|
|
|
}
|