forked from marklogic/java-client-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (38 loc) · 1.27 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
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
jacoco{toolVersion="0.7.4.201502262128"}
configure(allprojects){
ext.slf4jVersion = '1.7.25'
ext.logbackVersion = '1.2.3'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
sourceSets {
test.compileClasspath += configurations.compileOnly
test.runtimeClasspath += configurations.compileOnly
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'xmlunit', name: 'xmlunit', version:'1.6'
compileOnly group: 'org.apache.commons', name: 'commons-lang3', version:'3.7'
compileOnly group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.3'
}
test {
systemProperty "file.encoding", "UTF-8"
systemProperty "javax.xml.stream.XMLOutputFactory", "com.sun.xml.internal.stream.XMLOutputFactoryImpl"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.5.1'
}