2024-01-23 17:49:23 -06:00
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
|
|
|
|
id 'pegasus'
|
|
|
|
|
}
|
2020-07-29 11:42:35 -07:00
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
|
avroOriginal
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
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-models')
|
2023-11-14 19:00:22 -06:00
|
|
|
implementation spec.product.pegasus.dataAvro
|
2020-07-29 11:42:35 -07:00
|
|
|
|
2023-09-01 09:06:01 -05:00
|
|
|
testImplementation project(':test-models')
|
|
|
|
|
testImplementation project(path: ':test-models', configuration: 'testDataTemplate')
|
2020-07-29 11:42:35 -07:00
|
|
|
|
|
|
|
|
avroOriginal project(path: ':metadata-models', configuration: 'avroSchema')
|
2022-11-30 17:05:01 -06:00
|
|
|
|
2021-12-10 20:07:55 +02:00
|
|
|
constraints {
|
2022-11-30 17:05:01 -06:00
|
|
|
implementation(externalDependency.log4jCore) {
|
2021-12-20 22:55:22 +08:00
|
|
|
because("previous versions are vulnerable to CVE-2021-45105")
|
2021-12-10 20:07:55 +02:00
|
|
|
}
|
2022-11-30 17:05:01 -06:00
|
|
|
implementation(externalDependency.log4jApi) {
|
2021-12-20 22:55:22 +08:00
|
|
|
because("previous versions are vulnerable to CVE-2021-45105")
|
2021-12-10 20:07:55 +02:00
|
|
|
}
|
|
|
|
|
}
|
2020-07-29 11:42:35 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// copy original MXE avro schema from metadata-models to resources
|
|
|
|
|
task copyOriginalMXESchemas(type: Copy) {
|
|
|
|
|
dependsOn configurations.avroOriginal
|
|
|
|
|
|
|
|
|
|
from { // use of closure defers evaluation until execution time
|
|
|
|
|
configurations.avroOriginal.collect { zipTree(it) }
|
|
|
|
|
}
|
|
|
|
|
into("src/main/resources/")
|
|
|
|
|
include("avro/com/linkedin/mxe/")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileJava.dependsOn copyOriginalMXESchemas
|
|
|
|
|
processResources.dependsOn copyOriginalMXESchemas
|
|
|
|
|
|
|
|
|
|
clean {
|
|
|
|
|
project.delete("src/main/resources/avro")
|
|
|
|
|
}
|