forked from clarkware/jdepend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (94 loc) · 2.85 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
plugins {
id 'java'
id 'checkstyle'
// id 'pmd'
// id 'name.remal.sonarlint' version '1.0.192'
// id 'org.sonarqube' version '3.0'
id 'jacoco'
// id 'info.solidsoft.pitest' version '1.5.1'
id 'name.remal.check-updates' version '1.0.192'
}
group = 'com.nelkinda.tools'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '14'
repositories {
mavenCentral()
}
ext {
junitVersion = '4.13'
junitJupiterVersion = '5.6.2'
junitPlatformVersion = '1.6.2'
// pmdVersion = '6.24.0'
}
dependencies {
testImplementation "junit:junit:$rootProject.ext.junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter:$rootProject.ext.junitJupiterVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$rootProject.ext.junitJupiterVersion"
testImplementation "org.junit.jupiter:junit-jupiter-engine:$rootProject.ext.junitJupiterVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$rootProject.ext.junitJupiterVersion"
testImplementation "org.junit.platform:junit-platform-commons:$rootProject.ext.junitPlatformVersion"
testImplementation "org.junit.platform:junit-platform-engine:$rootProject.ext.junitPlatformVersion"
testImplementation "org.junit.vintage:junit-vintage-engine:$rootProject.ext.junitJupiterVersion"
}
checkDependencyUpdates {
failIfUpdatesFound = true
}
checkstyleMain {
configFile = file("config/checkstyle/checkstyleMain.xml")
maxWarnings = 0
}
checkstyleTest {
configFile = file("config/checkstyle/checkstyleTest.xml")
maxWarnings = 0
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
// minimum = 1.0
minimum = 0.4
}
}
}
}
check.dependsOn jacocoTestCoverageVerification
jacocoTestReport {
reports {
xml.enabled true
csv.enabled true
html.enabled true
}
}
test.finalizedBy jacocoTestReport
//pitest {
// targetClasses = ['com.nelkinda.template.*'] // TODO change
// pitestVersion = '1.5.2'
// timestampedReports = false
// testPlugin = 'junit5'
// outputFormats = ['XML', 'HTML']
// mutators = ['DEFAULTS', 'STRONGER', 'CONSTRUCTOR_CALLS', 'INLINE_CONSTS', 'REMOVE_CONDITIONALS', 'REMOVE_INCREMENTS']
// mutationThreshold = 100
// coverageThreshold = 100
//}
//pmd {
// ruleSets = []
// consoleOutput = true
// dependencies {
// pmd "net.sourceforge.pmd:pmd:$rootProject.ext.pmdVersion"
// pmd "net.sourceforge.pmd:pmd-core:$rootProject.ext.pmdVersion"
// pmd "net.sourceforge.pmd:pmd-java:$rootProject.ext.pmdVersion"
// }
//}
//pmdMain {
// ruleSetFiles = files("config/pmd/pmdMain.xml")
//}
//pmdTest {
// ruleSetFiles = files("config/pmd/pmdTest.xml")
//}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion "6.4.1"
distributionType = Wrapper.DistributionType.ALL
}