-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (75 loc) · 1.89 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
plugins {
id 'java-library'
id "com.adarshr.test-logger" version "3.0.0"
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'jacoco'
id 'checkstyle'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'org.json:json:20210307'
implementation 'com.sparkjava:spark-core:2.9.3'
implementation 'org.reflections:reflections:0.10.2'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter:5.8.0'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
checkstyle {
configFile = file("${project.rootDir}/checkstyle.xml")
}
version = '1.2.1'
apply plugin: 'application'
apply plugin: 'eclipse'
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'src/test/resources'
}
}
}
mainClassName = 'dungeonmania.App'
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
allprojects {
apply plugin: 'java'
tasks.withType(Copy).all {
duplicatesStrategy 'exclude'
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
}
afterEvaluate {
classDirectories.from = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['**App**',
'scintilla/**',
'dungeonmania/util/**',
'dungeonmania/response/models/**',
'dungeonmania/exceptions/**'])
})
}
dependsOn test
}