-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathbuild.gradle
More file actions
40 lines (32 loc) · 1.55 KB
/
build.gradle
File metadata and controls
40 lines (32 loc) · 1.55 KB
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
dependencies {
implementation group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jacksonVersion
implementation group: 'com.google.code.findbugs', name: 'annotations', version: findbugsAnnotationVersion
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: findbugsJsrVersion
testImplementation group: 'junit', name: 'junit', version: junitVersion
testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
// an assortment of json parsers
compileOnly group: 'com.google.code.gson', name: 'gson', version: gsonVersion
compileOnly group: 'org.json', name: 'json', version: jsonVersion
compileOnly group: 'com.googlecode.json-simple', name: 'json-simple', version: jsonSimpleVersion
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
}
tasks.named('processJmhResources') {
duplicatesStrategy = DuplicatesStrategy.WARN
}
test {
useJUnit {
excludeCategories 'com.optimizely.ab.categories.ExhaustiveTest'
}
}
task exhaustiveTest(type: Test) {
useJUnit {
includeCategories 'com.optimizely.ab.categories.ExhaustiveTest'
}
}
task generateVersionFile {
// add the build version information into a file that'll go into the distribution
ext.buildVersion = new File(projectDir, "src/main/resources/optimizely-build-version")
buildVersion.text = version
}
build.finalizedBy(generateVersionFile)