-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
75 lines (59 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
70
71
72
73
74
75
plugins {
id "io.codearte.nexus-staging" version "0.30.0"
}
apply plugin: 'io.codearte.nexus-staging'
ext {
// Tested with
appiumJavaClientVersion = '9.2.3'
// appiumJavaClientVersion = '8.6.0'
// Minimum required Testerra version
testerraCompileVersion = '2.8'
// Unit tests use the latest Testerra version
// testerraTestVersion = '[2,3-SNAPSHOT)'
testerraTestVersion = '2.8'
moduleVersion = '2-SNAPSHOT'
if (System.properties.containsKey('moduleVersion')) {
moduleVersion = System.getProperty('moduleVersion')
}
if (System.properties.containsKey('ttVersion')) {
testerraTestVersion = testerraCompileVersion = System.getProperty('ttVersion')
}
}
allprojects {
apply plugin: 'java-library'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
}
subprojects {
group 'io.testerra'
version moduleVersion
apply plugin: 'maven-publish'
apply plugin: 'signing'
repositories {
mavenCentral()
}
test {
useTestNG()
testLogging {
outputs.upToDateWhen { false }
showStandardStreams = true
}
options {
systemProperties(System.getProperties())
}
ignoreFailures = true
}
tasks.whenTaskAdded { t ->
if (t.name.startsWith("publish")) {
boolean e = t.project.publish.enabled
if (!e) {
println "Not running publish for " + t.project.name
t.enabled = false
}
}
}
}
// Do not move this integration because `group` and `version` is needed for publishing
apply from: rootProject.file('publish.gradle')