forked from MatiasLyyra/Lukuvinkki-NESMM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (81 loc) · 2.77 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
87
88
89
90
91
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'application'
// apply plugin: 'eclipse'
// apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
mainClassName = 'lukuvinkki.Application'
bootJar {
baseName = 'lukuvinkki-applikaatio'
version = ''
}
def profiles = 'dev'
bootRun {
args = ['--spring.profiles.active=' + profiles]
}
repositories {
jcenter()
}
project.ext {
cucumberVersion = "1.2.5"
junitVersion = "4.12"
seleniumVersion = "3.4.0"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-devtools")
compile("com.h2database:h2")
compile("org.postgresql:postgresql")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
// compile group: 'org.springframework', name: 'spring-web', version: '5.1.2.RELEASE'
testCompile("org.springframework:spring-test")
compile group: 'org.seleniumhq.selenium', name: 'htmlunit-driver', version: '2.27'
compile group: 'org.seleniumhq.selenium', name: 'selenium-firefox-driver', version: seleniumVersion
compile group: 'org.seleniumhq.selenium', name: 'selenium-api', version: seleniumVersion
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: seleniumVersion
compile group: 'org.seleniumhq.selenium', name: 'selenium-remote-driver', version: seleniumVersion
testCompile("io.github.bonigarcia:webdrivermanager:1.6.2") {
exclude group: 'org.seleniumhq.selenium'
}
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("org.springframework:spring-test")
testCompile "info.cukes:cucumber-core:" + cucumberVersion
testCompile "info.cukes:cucumber-java:" + cucumberVersion
testCompile "info.cukes:cucumber-junit:" + cucumberVersion
testCompile "info.cukes:cucumber-spring:" + cucumberVersion
testCompile "junit:junit:" + junitVersion
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
test {
testLogging {
events "failed"
exceptionFormat "full"
//showStandardStreams = true
}
jacoco {
excludes = ['*Application', '**com.steadystate*']
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['**/*Application**'])
})
}
}