-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (55 loc) · 1.78 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
62
63
64
65
66
67
68
69
plugins {
id "io.codearte.nexus-staging" version "0.30.0"
}
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'io.codearte.nexus-staging'
ext {
// Minimum required Testerra version
testerraCompileVersion = '2.0'
// Unit tests use the latest Testerra version
testerraTestVersion = '[2,3-SNAPSHOT)'
// Default version
moduleVersion = '1-SNAPSHOT'
if (System.properties.containsKey('moduleVersion')) {
moduleVersion = System.getProperty('moduleVersion')
}
group 'io.testerra'
version moduleVersion
}
// Do not move this integration because `group` and `version` is needed for publishing
apply from: rootProject.file('publish.gradle')
dependencies {
compileOnly 'io.testerra:core:' + testerraCompileVersion
// implementation 'io.testerra:surefire-connector:' + testerraCompileVersion
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.apache.httpcomponents:httpcore:4.4.15'
implementation 'org.glassfish.jersey.core:jersey-client:2.36'
implementation 'org.glassfish.jersey.inject:jersey-hk2:2.36'
// implementation 'org.glassfish.jersey.media:jersey-media-json-jackson:2.32'
// Better JSON mapper for Jersey
implementation 'com.owlike:genson:1.6'
testImplementation 'io.testerra:core:' + testerraTestVersion
testImplementation 'io.testerra:report-ng:' + testerraTestVersion
}
test {
useTestNG()
}
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
//task unitTests(type: Test) {
// useTestNG() {
// suites 'src/test/resources/unit_tests.xml'
// }
//}
//
//task integrationTests(type: Test) {
// useTestNG() {
// suites 'src/test/resources/integration_tests.xml'
// }
//}