-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
115 lines (94 loc) · 2.73 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
111
112
113
114
115
plugins {
id 'java'
id 'checkstyle'
id 'info.solidsoft.pitest' version '1.4.0'
id "me.champeau.gradle.jmh" version "0.4.8" apply false
}
allprojects {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
buildscript {
configurations.maybeCreate('pitest')
dependencies {
pitest 'org.pitest:pitest-junit5-plugin:0.8'
}
}
apply plugin: 'java'
apply plugin: 'checkstyle'
version '1.0.0'
sourceCompatibility = 11
targetCompatibility = 11
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
repositories {
mavenCentral()
}
dependencies {
compile 'io.vavr:vavr:0.9.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testCompile 'org.projectlombok:lombok:1.18.4'
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.12.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.0'
}
test {
useJUnitPlatform()
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
exceptionFormat = 'full'
showStackTraces = false
}
systemProperty "file.encoding", "utf-8"
}
checkstyle {
toolVersion '7.8.1'
}
pitest {
testPlugin = 'junit5'
targetClasses = ['metamer.*']
targetTests = ['metamer.*']
mainSourceSets = [':cli', ':assembler', ':utils' ].collect { project(it).sourceSets.main }
testSourceSets = [':cli', ':assembler', ':utils' ].collect { project(it).sourceSets.test }
mutators = ['ALL']
outputFormats = ['XML', 'HTML']
timestampedReports = false
threads = 4
}
}
project('cli') {
jar {
manifest {
attributes 'Main-Class': 'metamer.cmdparser.CliHandler'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
dependencies {
compile project(':assembler')
compile 'commons-cli:commons-cli:1.4'
}
}
project('assembler') {
dependencies {
compile project(':api')
compile project(':utils')
}
}
project('functional_tests') {
dependencies {
compile project(':cli')
}
}
project('benchmark') {
apply plugin: "me.champeau.gradle.jmh"
dependencies {
compile 'org.openjdk.jmh:jmh-core:1.19'
compile 'org.openjdk.jmh:jmh-generator-annprocess:1.19'
}
}