-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
50 lines (43 loc) · 849 Bytes
/
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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.4.2/samples
*/
plugins {
id 'java'
id 'application'
id 'jacoco'
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
test {
java {
srcDirs = ['test']
}
}
}
dependencies {
implementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
}
tasks.named('test') {
useJUnitPlatform()
}
application {
getMainClass().set(findProperty("className").toString())
}
jacocoTestReport {
reports {
xml.required = true
}
setSourceCompatibility(1.8)
dependsOn(test)
}