-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (57 loc) · 1.3 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
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'java'
id 'jacoco'
}
version '0.1'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
application {
mainClass = 'fr.ensicaen.regate.mvp.Main'
}
repositories {
mavenCentral()
}
sourceSets.main {
java.srcDir file('src/main/java')
}
javafx {
version = "16"
modules = ['javafx.controls', 'javafx.fxml']
}
dependencies {
implementation(
'org.json:json:20220924',
[files("lib")]
)
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'org.jetbrains:annotations:20.1.0'
testImplementation(
['org.junit.jupiter:junit-jupiter:5.+'],
['org.mockito:mockito-core:4.+'],
[files("lib")]
)
}
task copyLibFolder(type: Copy) {
description 'Copies the lib folder.'
from('lib')
into("$buildDir/classes")
}
compileJava.dependsOn copyLibFolder
applicationDistribution.from(['LICENSE', 'README.md']) {
into ''
}
test {
useJUnitPlatform()
}
jacoco {
toolVersion = "0.8.8"
reportsDirectory = layout.buildDirectory.dir('customJacocoReportDir')
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}