forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (33 loc) · 1.1 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apply plugin: 'java'
configurations {
avroOriginal
}
dependencies {
compile project(':metadata-events:mxe-avro-1.7')
compile project(':metadata-models')
compile spec.product.pegasus.dataAvro1_6
testCompile project(':test-models')
avroOriginal project(path: ':metadata-models', configuration: 'avroSchema')
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")
}
}
}
// 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")
}