-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (45 loc) · 1.31 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
buildscript {
repositories { mavenCentral() }
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M3'
}
}
plugins {
id 'net.saliman.cobertura' version '2.4.0'
}
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'checkstyle'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.16.16'
implementation 'org.slf4j:slf4j-api:1.7.21'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.0.0-M3'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.0-M3'
testImplementation 'org.mockito:mockito-core:2.1.0-RC.1'
}
idea.project {
vcs = 'Git'
jdkName = '1.8'
languageLevel = '1.8'
}
checkstyle {
toolVersion = '7.3'
configFile = new File('src/main/config/checkstyle/checkstyle.xml')
}
junitPlatform {
enableStandardTestTask = true
}
cobertura {
coverageIgnoreTrivial = true
coverageCheckHaltOnFailure = true
coverageCheckLineRate = 90
coverageCheckBranchRate = 90
// TODO: [Linesh][1/7/17] Right now JUnit 5 runs test in junitPlatformTest task which is not scanned by cobertura and therefore nothing is coverage-checked.
coverageExcludes = [
'.*refactor.howto.linesh.tw.smells.*'
]
}