forked from AlexandrMatviyenka/JMP2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (72 loc) · 2.16 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
76
77
78
79
80
81
82
83
84
85
86
allprojects {
defaultTasks 'build'
apply plugin: 'idea'
group = "com.epam.jmp"
version = '0.1-SNAPSHOT'
repositories {
jcenter()
}
}
subprojects {
apply plugin: 'java'
apply from: "$rootDir/gradle/checkstyle.gradle"
apply from: "$rootDir/gradle/findbugs.gradle"
apply from: "$rootDir/gradle/jacoco.gradle"
ext {
bootVersion = '1.5.3.RELEASE'
hsqldbVersion = '2.3.2'
springVersion = '4.2.4.RELEASE'
guavaVersion = '18.0'
hamcrestVersion = '1.3'
junitVersion = '4.12'
mockitoVersion = '1.10.8'
dbunitVersion = '2.5.0'
log4jVersion = '2.1'
rabbitMqVersion = '3.4.3'
jacksonVersion = '2.4.0'
jbehaveVersion = '3.9.5'
slf4jVersion = '1.7.9'
slf4jLog4j12Version = '1.7.10'
commonsLang3Version = '3.4'
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
dependencies {
compile "org.apache.logging.log4j:log4j-core:$log4jVersion"
testCompile("junit:junit:$junitVersion") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.mockito:mockito-core:$mockitoVersion") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-all:$hamcrestVersion")
}
jar {
manifest {
attributes provider: 'gradle', 'Implementation-Version': version
}
}
test {
exclude '**/*Suite.class', '**/*Tests.class'
//forkEvery = 5
//maxParallelForks = Runtime.runtime.availableProcessors() / 2
testLogging {
showStackTraces = true
exceptionFormat 'full'
events 'skipped', 'failed'
}
}
test.addTestListener(new com.epam.jmp.NotificationTestListener(project))
}
task wrapper(type: Wrapper) {
description = 'Generate generic scripts to run on *nix and Windows'
gradleVersion = '3.5'
}