-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (56 loc) · 1.88 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 'java-library'
id 'org.openjfx.javafxplugin' version '0.1.0'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
javafx {
version = "18.0.1"
modules = ['javafx.controls', 'javafx.fxml']
}
repositories {
mavenCentral()
}
dependencies {
def junitVersion = '5.10.1'
// This provides the JUnit API.
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation 'org.testfx:testfx-core:4.0.16-alpha'
testImplementation 'org.testfx:testfx-junit5:4.0.16-alpha'
testImplementation 'org.testfx:openjfx-monocle:jdk-12.0.1+2'
// This provides the TestEngine to actually run the tests.
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
implementation 'org.mongodb:mongodb-driver-sync:4.11.0'
implementation 'org.openjfx:javafx-controls:18.0.1'
implementation 'org.openjfx:javafx-fxml:18.0.1'
implementation group: 'at.favre.lib', name: 'bcrypt', version: '0.10.2'
implementation 'org.json:json:20231013'
implementation 'javax:javaee-api:8.0.1'
implementation 'io.javalin:javalin:5.6.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.0'
implementation 'org.slf4j:slf4j-simple:2.0.9'
implementation 'com.google.code.gson:gson:2.10.1'
testImplementation 'org.mockito:mockito-core:3.12.4'
testImplementation 'org.powermock:powermock-api-mockito2:2.0.9'
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
}
test {
// Alternatively, you can configure it to only show output for failed tests
testLogging {
events 'passed', 'skipped', 'failed'
exceptionFormat 'full'
showExceptions true
showCauses true
}
}
application {
mainClass = 'App'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}