-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
58 lines (46 loc) · 1.51 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
plugins {
id 'com.github.johnrengelman.shadow' version '4.0.4'
}
ext.library = [
groovy: 'org.codehaus.groovy:groovy-all:2.3.4',
cli: 'commons-cli:commons-cli:1.2',
github: 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5',
jackson_yaml: 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.8.6',
jackson_databind: 'com.fasterxml.jackson.core:jackson-databind:2.8.6',
mail: 'javax.mail:mail:1.4.5',
junit: 'junit:junit-dep:4.10',
hamcrest: 'org.hamcrest:hamcrest-all:1.3',
mockito: 'org.mockito:mockito-core:2.7.7',
]
def BUILD_NUMBER = project.hasProperty('BUILD_NUMBER')? "$BUILD_NUMBER" : '0'
version = "1.0.$BUILD_NUMBER"
subprojects {
apply plugin: 'groovy'
apply plugin: 'jacoco'
group = 'com.jacky'
version = "1.0.$BUILD_NUMBER"
sourceCompatibility = 1.8
targetCompatibility = 1.8
gradle.startParameter.continueOnFailure = true
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
repositories {
jcenter()
}
dependencies {
implementation library.groovy
implementation library.cli
implementation library.github
implementation library.jackson_databind
testImplementation library.junit
testImplementation library.hamcrest
}
test {
defaultCharacterEncoding = "UTF-8"
testLogging {
showStackTraces = true
exceptionFormat = 'full'
events "STARTED", "PASSED", "FAILED", "SKIPPED"
}
}
}