forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (54 loc) · 1.79 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
id 'antlr'
id 'idea'
id 'data-prepper.publish'
}
group = 'org.opensearch.dataprepper.core'
ext {
antlrGeneratedPackageDirectory = "org/opensearch/dataprepper/expression/antlr/"
}
dependencies {
antlr('org.antlr:antlr4:4.10.1') {
exclude group: 'org.glassfish', module: 'javax.json'
}
implementation project(':data-prepper-api')
implementation 'javax.inject:javax.inject:1'
implementation(libs.spring.core) {
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation(libs.spring.context) {
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation platform('org.apache.logging.log4j:log4j-bom:2.23.0')
implementation 'org.apache.logging.log4j:log4j-core'
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl'
implementation 'com.github.seancfoley:ipaddress:5.4.2'
testImplementation testLibs.spring.test
testImplementation libs.commons.lang3
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
}
generateGrammarSource {
outputDirectory = new File("build/generated-src/antlr/main/${antlrGeneratedPackageDirectory}")
}
jacocoTestCoverageVerification {
dependsOn jacocoTestReport
violationRules {
rule { //in addition to core projects rule - this one checks for 100% code coverage for this project
limit {
minimum = 1.0 // keep at 100%
}
}
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ["${antlrGeneratedPackageDirectory}/**"])
}))
}
}
tasks.named('sourcesJar').configure {
dependsOn 'generateGrammarSource'
}