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 compile externalDependency.dgraph4j exclude group: 'com.google.guava', module: 'guava' compile externalDependency.lombok compile externalDependency.elasticSearchRest compile externalDependency.elasticSearchTransport compile externalDependency.javatuples compile externalDependency.kafkaClients compile externalDependency.ebean enhance externalDependency.ebeanAgent compile externalDependency.opentelemetryAnnotations compile externalDependency.resilience4j compile externalDependency.springContext annotationProcessor externalDependency.lombok testCompile externalDependency.testng testCompile externalDependency.h2 testCompile externalDependency.neo4jHarness testCompile externalDependency.mockito testCompile externalDependency.mockitoInline testCompile externalDependency.iStackCommons testCompile externalDependency.resilience4j testCompile externalDependency.testContainers testCompile externalDependency.testContainersJunit testCompile externalDependency.testContainersElasticsearch testCompile externalDependency.lombok testCompile project(':test-models') testAnnotationProcessor externalDependency.lombok constraints { implementation("org.apache.logging.log4j:log4j-core:2.17.0") { because("previous versions are vulnerable to CVE-2021-45105") } implementation("org.apache.logging.log4j:log4j-api:2.17.0") { because("previous versions are vulnerable to CVE-2021-45105") } } } test { // https://docs.gradle.org/current/userguide/performance.html maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 testLogging.showStandardStreams = true testLogging.exceptionFormat = 'full' } 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') } }